Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 attrs, 7 docopt, 8 pillow, 9 scikit-image, 10 scipy, 11 numpy, 12 aggdraw, 13 pytestCheckHook, 14 pytest-cov, 15 ipython, 16 cython, 17}: 18 19buildPythonPackage rec { 20 pname = "psd-tools"; 21 version = "1.9.34"; 22 format = "setuptools"; 23 24 disabled = pythonOlder "3.7"; 25 26 src = fetchFromGitHub { 27 owner = "psd-tools"; 28 repo = pname; 29 rev = "refs/tags/v${version}"; 30 hash = "sha256-UFdprXoHFsbH3Tbui44n8FTdbkynnYVL1LHtFzFInio="; 31 }; 32 33 postPatch = '' 34 sed -i "/addopts =/d" pyproject.toml 35 ''; 36 37 nativeBuildInputs = [ cython ]; 38 39 propagatedBuildInputs = [ 40 aggdraw 41 attrs 42 docopt 43 ipython 44 numpy 45 pillow 46 scikit-image 47 scipy 48 ]; 49 50 nativeCheckInputs = [ 51 pytestCheckHook 52 pytest-cov 53 ]; 54 55 pythonImportsCheck = [ "psd_tools" ]; 56 57 meta = with lib; { 58 description = "Python package for reading Adobe Photoshop PSD files"; 59 mainProgram = "psd-tools"; 60 homepage = "https://github.com/kmike/psd-tools"; 61 changelog = "https://github.com/psd-tools/psd-tools/blob/v${version}/CHANGES.rst"; 62 license = licenses.mit; 63 maintainers = with maintainers; [ onny ]; 64 }; 65}