My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/pyisy/default.nix

43 lines
884 B

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