{ lib, buildPythonPackage, fetchPypi, isPy27 , docopt , pillow , enum34 }: buildPythonPackage rec { pname = "psd-tools"; version = "1.9.21"; src = fetchPypi { inherit pname version; sha256 = "sha256-BlfJnC03W0BEOr2Nav0Tj0fzjwAVlTPjyN0KmxxQMVI="; }; propagatedBuildInputs = [ docopt pillow ] ++ lib.optionals isPy27 [ enum34 ]; meta = { description = "Python package for reading Adobe Photoshop PSD files"; homepage = "https://github.com/kmike/psd-tools"; license = lib.licenses.mit; broken = true; # missing packbits from nixpkgs }; }