Merge pull request #127938 from dotlambda/pyisy-init
This commit is contained in:
commit
997977a64e
43
pkgs/development/python-modules/pyisy/default.nix
Normal file
43
pkgs/development/python-modules/pyisy/default.nix
Normal file
@ -0,0 +1,43 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, requests
|
||||
, python-dateutil
|
||||
, aiohttp
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyisy";
|
||||
version = "3.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "automicus";
|
||||
repo = "PyISY";
|
||||
rev = "v${version}";
|
||||
sha256 = "1bxp13m83qm1n1ddyw6mdz0ijfksjg4ki85w4n8i597f3xazm8q4";
|
||||
};
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
@ -411,7 +411,7 @@
|
||||
"irish_rail_transport" = ps: with ps; [ ]; # missing inputs: pyirishrail
|
||||
"islamic_prayer_times" = ps: with ps; [ prayer-times-calculator ];
|
||||
"iss" = ps: with ps; [ ]; # missing inputs: pyiss
|
||||
"isy994" = ps: with ps; [ ]; # missing inputs: pyisy
|
||||
"isy994" = ps: with ps; [ pyisy ];
|
||||
"itach" = ps: with ps; [ ]; # missing inputs: pyitachip2ir
|
||||
"itunes" = ps: with ps; [ ];
|
||||
"izone" = ps: with ps; [ ]; # missing inputs: python-izone
|
||||
|
@ -485,6 +485,7 @@ in with py.pkgs; buildPythonApplication rec {
|
||||
"ipp"
|
||||
"iqvia"
|
||||
"islamic_prayer_times"
|
||||
"isy994"
|
||||
"jewish_calendar"
|
||||
"kira"
|
||||
"kmtronic"
|
||||
|
@ -5293,6 +5293,8 @@ in {
|
||||
|
||||
pyhiveapi = callPackage ../development/python-modules/pyhiveapi { };
|
||||
|
||||
pyisy = callPackage ../development/python-modules/pyisy { };
|
||||
|
||||
pynndescent = callPackage ../development/python-modules/pynndescent { };
|
||||
|
||||
pynobo = callPackage ../development/python-modules/pynobo { };
|
||||
|
Loading…
Reference in New Issue
Block a user