Merge pull request #147423 from fabaff/fix-pythonegardia
python3Packages.pythonegardia: add patch for search path
This commit is contained in:
commit
ed0b3bb0e8
@ -1,25 +1,44 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchFromGitHub
|
||||||
|
, fetchpatch
|
||||||
, requests
|
, requests
|
||||||
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pythonegardia";
|
pname = "pythonegardia";
|
||||||
version = "1.0.51";
|
version = "1.0.51";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
src = fetchPypi {
|
disabled = pythonOlder "3.8";
|
||||||
inherit pname version;
|
|
||||||
sha256 = "b99217e34c59bfae059db400acef99d3d32237d13da6fdce9e0d4decc9a07e61";
|
src = fetchFromGitHub {
|
||||||
|
owner = "jeroenterheerdt";
|
||||||
|
repo = "python-egardia";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "7HindS++jcV3GRn/SKoTMpVOchOnLojy/TY0HZjtyD8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
requests
|
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
|
# Project has no tests, only two test file for manual interaction
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
pythonImportsCheck = [ "pythonegardia" ];
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"pythonegardia"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python interface with Egardia/Woonveilig alarms";
|
description = "Python interface with Egardia/Woonveilig alarms";
|
||||||
|
Loading…
Reference in New Issue
Block a user