mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
47 lines
911 B
Nix
47 lines
911 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
docopt,
|
|
fetchFromGitHub,
|
|
pythonOlder,
|
|
pytz,
|
|
requests,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "epion";
|
|
version = "0.0.3";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "devenzo-com";
|
|
repo = "epion_python";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-9tE/SqR+GHZXeE+bOtXkLu+4jy1vO8WoiLjb6MJazxQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [
|
|
docopt
|
|
pytz
|
|
requests
|
|
];
|
|
|
|
# Module has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "epion" ];
|
|
|
|
meta = with lib; {
|
|
description = "Module to access Epion sensor data";
|
|
homepage = "https://github.com/devenzo-com/epion_python";
|
|
changelog = "https://github.com/devenzo-com/epion_python/releases/tag/${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|