lol

python3Packages.pythonegardia: add patch for search path

+24 -5
+24 -5
pkgs/development/python-modules/pythonegardia/default.nix
··· 1 { lib 2 , buildPythonPackage 3 - , fetchPypi 4 , requests 5 }: 6 7 buildPythonPackage rec { 8 pname = "pythonegardia"; 9 version = "1.0.51"; 10 11 - src = fetchPypi { 12 - inherit pname version; 13 - sha256 = "b99217e34c59bfae059db400acef99d3d32237d13da6fdce9e0d4decc9a07e61"; 14 }; 15 16 propagatedBuildInputs = [ 17 requests 18 ]; 19 20 # Project has no tests, only two test file for manual interaction 21 doCheck = false; 22 - pythonImportsCheck = [ "pythonegardia" ]; 23 24 meta = with lib; { 25 description = "Python interface with Egardia/Woonveilig alarms";
··· 1 { lib 2 , buildPythonPackage 3 + , fetchFromGitHub 4 + , fetchpatch 5 , requests 6 + , pythonOlder 7 }: 8 9 buildPythonPackage rec { 10 pname = "pythonegardia"; 11 version = "1.0.51"; 12 + format = "setuptools"; 13 14 + disabled = pythonOlder "3.8"; 15 + 16 + src = fetchFromGitHub { 17 + owner = "jeroenterheerdt"; 18 + repo = "python-egardia"; 19 + rev = "v${version}"; 20 + sha256 = "7HindS++jcV3GRn/SKoTMpVOchOnLojy/TY0HZjtyD8="; 21 }; 22 23 propagatedBuildInputs = [ 24 requests 25 ]; 26 27 + patches = [ 28 + # Adjust search path, https://github.com/jeroenterheerdt/python-egardia/pull/33 29 + (fetchpatch { 30 + name = "search-path.patch"; 31 + url = "https://github.com/jeroenterheerdt/python-egardia/commit/6b7bf5b7b2211e3557e0f438586b9d03b9bae440.patch"; 32 + sha256 = "wUSfmF0SrKCITQJJsHgkGgPZFouaB/zbVqupK6fARHY="; 33 + }) 34 + ]; 35 + 36 # Project has no tests, only two test file for manual interaction 37 doCheck = false; 38 + 39 + pythonImportsCheck = [ 40 + "pythonegardia" 41 + ]; 42 43 meta = with lib; { 44 description = "Python interface with Egardia/Woonveilig alarms";