nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 47 lines 934 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 mock, 6 pillow, 7 pytestCheckHook, 8 pytest-cov-stub, 9 setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "pilkit"; 14 version = "3.0"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "matthewwithanm"; 19 repo = "pilkit"; 20 tag = version; 21 hash = "sha256-NmD9PFCkz3lz4AnGoQUpkt35q0zvDVm+kx7lVDFBcHk="; 22 }; 23 24 nativeBuildInputs = [ setuptools ]; 25 26 propagatedBuildInputs = [ pillow ]; 27 28 nativeCheckInputs = [ 29 mock 30 pytestCheckHook 31 pytest-cov-stub 32 ]; 33 34 postPatch = '' 35 substituteInPlace pilkit/processors/resize.py \ 36 --replace "Image.ANTIALIAS" "Image.Resampling.LANCZOS" 37 ''; 38 39 pythonImportsCheck = [ "pilkit" ]; 40 41 meta = { 42 description = "Collection of utilities and processors for the Python Imaging Library"; 43 homepage = "https://github.com/matthewwithanm/pilkit/"; 44 license = lib.licenses.bsd3; 45 maintainers = [ ]; 46 }; 47}