3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request from fabaff/pyisy-bump

python310Packages.pyisy: 3.0.12 -> 3.1.9
This commit is contained in:
Fabian Affolter 2023-01-31 00:18:25 +01:00 committed by GitHub
commit f3b0299987
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,15 +1,17 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
, python-dateutil
, aiohttp
, buildPythonPackage
, colorlog
, fetchFromGitHub
, python-dateutil
, pythonOlder
, requests
, setuptools-scm
}:
buildPythonPackage rec {
pname = "pyisy";
version = "3.0.12";
version = "3.1.9";
format = "setuptools";
disabled = pythonOlder "3.7";
@ -18,17 +20,23 @@ buildPythonPackage rec {
owner = "automicus";
repo = "PyISY";
rev = "refs/tags/v${version}";
hash = "sha256-i9xC1Vijf/pU7WmRaosdEs5tPNos2hq3cGkT8MGM1Ro=";
hash = "sha256-X/flikSo0PKHz4iBw4AjhCwpTtt2P+1jrlTAanYgO1A=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
postPatch = ''
substituteInPlace setup.py \
--replace "setuptools-git-version" "" \
--replace 'version_format="{tag}"' 'version="${version}"'
'';
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
aiohttp
colorlog
python-dateutil
requests
];