lol

python310Packages.psd-tools: Unbreak package

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