3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/pyisy/default.nix
2022-09-09 12:03:13 +00:00

44 lines
884 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
, python-dateutil
, aiohttp
}:
buildPythonPackage rec {
pname = "pyisy";
version = "3.0.8";
src = fetchFromGitHub {
owner = "automicus";
repo = "PyISY";
rev = "refs/tags/v${version}";
hash = "sha256-Q3KewvZJMq4YKrpS6ir5rqZkDhxGACDIhlbr3b6lDAs=";
};
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 ];
};
}