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 15buildPythonPackage rec { 16 pname = "psd-tools"; 17 version = "1.9.23"; 18 19 src = fetchFromGitHub { 20 owner = "psd-tools"; 21 repo = pname; 22 rev = "refs/tags/v${version}"; 23 sha256 = "sha256-pJUf5rE5QMnfNytU1P0Zbj1iztrK5xrX4CJ/WvIG8mY="; 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}