Merge pull request #127938 from dotlambda/pyisy-init

This commit is contained in:
Martin Weinelt 2021-06-23 20:35:03 +02:00 committed by GitHub
commit 997977a64e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 47 additions and 1 deletions

View 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 ];
};
}

View File

@ -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

View File

@ -485,6 +485,7 @@ in with py.pkgs; buildPythonApplication rec {
"ipp"
"iqvia"
"islamic_prayer_times"
"isy994"
"jewish_calendar"
"kira"
"kmtronic"

View File

@ -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 { };