lol

python310Packages.psd-tools: Unbreak package

+27 -8
+27 -8
pkgs/development/python-modules/psd-tools/default.nix
··· 1 - { lib, buildPythonPackage, fetchPypi, isPy27 2 , docopt 3 , pillow 4 , enum34 5 }: 6 7 buildPythonPackage rec { 8 pname = "psd-tools"; 9 version = "1.9.21"; 10 11 - src = fetchPypi { 12 - inherit pname version; 13 - sha256 = "sha256-BlfJnC03W0BEOr2Nav0Tj0fzjwAVlTPjyN0KmxxQMVI="; 14 }; 15 16 propagatedBuildInputs = [ 17 docopt 18 pillow 19 - ] ++ lib.optionals isPy27 [ enum34 ]; 20 21 - meta = { 22 description = "Python package for reading Adobe Photoshop PSD files"; 23 homepage = "https://github.com/kmike/psd-tools"; 24 - license = lib.licenses.mit; 25 - broken = true; # missing packbits from nixpkgs 26 }; 27 }
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , isPy27 5 , docopt 6 , pillow 7 , enum34 8 + , scikitimage 9 + , aggdraw 10 + , pytestCheckHook 11 + , ipython 12 + , cython 13 }: 14 15 buildPythonPackage rec { 16 pname = "psd-tools"; 17 version = "1.9.21"; 18 19 + src = fetchFromGitHub { 20 + owner = "psd-tools"; 21 + repo = pname; 22 + rev = "v${version}"; 23 + sha256 = "sha256-+nqN7DJHbr7XkfG0oUQkWcxv+krR8DlQndAQCvnBk3s="; 24 }; 25 26 + nativeBuildInputs = [ cython ]; 27 + 28 propagatedBuildInputs = [ 29 + aggdraw 30 docopt 31 + ipython 32 pillow 33 + scikitimage 34 + ]; 35 + 36 + checkInputs = [ pytestCheckHook ]; 37 + 38 + pythonImportsCheck = [ "psd_tools" ]; 39 40 + meta = with lib; { 41 description = "Python package for reading Adobe Photoshop PSD files"; 42 homepage = "https://github.com/kmike/psd-tools"; 43 + license = licenses.mit; 44 + maintainers = with maintainers; [ onny ]; 45 }; 46 }