3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #147423 from fabaff/fix-pythonegardia

python3Packages.pythonegardia: add patch for search path
This commit is contained in:
Fabian Affolter 2021-11-26 00:16:07 +01:00 committed by GitHub
commit ed0b3bb0e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,25 +1,44 @@
{ lib
, buildPythonPackage
, fetchPypi
, fetchFromGitHub
, fetchpatch
, requests
, pythonOlder
}:
buildPythonPackage rec {
pname = "pythonegardia";
version = "1.0.51";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "b99217e34c59bfae059db400acef99d3d32237d13da6fdce9e0d4decc9a07e61";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "jeroenterheerdt";
repo = "python-egardia";
rev = "v${version}";
sha256 = "7HindS++jcV3GRn/SKoTMpVOchOnLojy/TY0HZjtyD8=";
};
propagatedBuildInputs = [
requests
];
patches = [
# Adjust search path, https://github.com/jeroenterheerdt/python-egardia/pull/33
(fetchpatch {
name = "search-path.patch";
url = "https://github.com/jeroenterheerdt/python-egardia/commit/6b7bf5b7b2211e3557e0f438586b9d03b9bae440.patch";
sha256 = "wUSfmF0SrKCITQJJsHgkGgPZFouaB/zbVqupK6fARHY=";
})
];
# Project has no tests, only two test file for manual interaction
doCheck = false;
pythonImportsCheck = [ "pythonegardia" ];
pythonImportsCheck = [
"pythonegardia"
];
meta = with lib; {
description = "Python interface with Egardia/Woonveilig alarms";