3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #231998 from fabaff/py-zabbix-fix

This commit is contained in:
Sandro 2023-05-15 17:06:28 +02:00 committed by GitHub
commit f5281f01da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, pytestCheckHook
, pythonOlder
}:
@ -15,10 +16,19 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "adubkov";
repo = "py-zabbix";
rev = version;
sha256 = "aPQc188pszfDQvNtsGYlRLHS5CG5VyqptSoe4/GJVvE=";
rev = "refs/tags/${version}";
hash = "sha256-aPQc188pszfDQvNtsGYlRLHS5CG5VyqptSoe4/GJVvE=";
};
patches = [
# Remove Python2 comp, https://github.com/adubkov/py-zabbix/pull/154
(fetchpatch {
name = "no-more-py2.patch";
url = "https://github.com/adubkov/py-zabbix/commit/8deedb860f52870fbeacc54a40341520702341e2.patch";
hash = "sha256-Af7pnCZIObC0ZQLaamBK1pTAVAFs/Mh7+og5jAKqk4s=";
})
];
nativeCheckInputs = [
pytestCheckHook
];