nixpkgs/pkgs/development/python-modules/pyisy/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
874 B
Nix
Raw Normal View History

2021-06-23 17:39:03 +00:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
, python-dateutil
, aiohttp
}:
buildPythonPackage rec {
pname = "pyisy";
version = "3.0.3";
2021-06-23 17:39:03 +00:00
src = fetchFromGitHub {
owner = "automicus";
repo = "PyISY";
rev = "v${version}";
hash = "sha256-zQ0IBfbWEGv5t+b3EKF+6tEpmwfAWFMndPqSNSQZ5b4=";
2021-06-23 17:39:03 +00:00
};
postPatch = ''
substituteInPlace setup.py \
--replace "setuptools-git-version" "" \
--replace 'version_format="{tag}"' 'version="${version}"'
'';
propagatedBuildInputs = [
aiohttp
python-dateutil
requests
];
# no tests implemented
doCheck = false;
pythonImportsCheck = [ "pyisy" ];
meta = with lib; {
description = "Python module to talk to ISY994 from UDI";
homepage = "https://github.com/automicus/PyISY";
license = licenses.asl20;
maintainers = with maintainers; [ dotlambda ];
};
}