lol

python3Packages.pythonegardia: add patch for search path

+24 -5
+24 -5
pkgs/development/python-modules/pythonegardia/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 - , fetchPypi 3 + , fetchFromGitHub 4 + , fetchpatch 4 5 , requests 6 + , pythonOlder 5 7 }: 6 8 7 9 buildPythonPackage rec { 8 10 pname = "pythonegardia"; 9 11 version = "1.0.51"; 12 + format = "setuptools"; 10 13 11 - src = fetchPypi { 12 - inherit pname version; 13 - sha256 = "b99217e34c59bfae059db400acef99d3d32237d13da6fdce9e0d4decc9a07e61"; 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="; 14 21 }; 15 22 16 23 propagatedBuildInputs = [ 17 24 requests 18 25 ]; 19 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 + 20 36 # Project has no tests, only two test file for manual interaction 21 37 doCheck = false; 22 - pythonImportsCheck = [ "pythonegardia" ]; 38 + 39 + pythonImportsCheck = [ 40 + "pythonegardia" 41 + ]; 23 42 24 43 meta = with lib; { 25 44 description = "Python interface with Egardia/Woonveilig alarms";