mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 04:03:56 +00:00
python310Packages.psd-tools: Unbreak package
This commit is contained in:
parent
dfe6678864
commit
526c112e84
@ -1,27 +1,46 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, isPy27
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, isPy27
|
||||
, docopt
|
||||
, pillow
|
||||
, enum34
|
||||
, scikitimage
|
||||
, aggdraw
|
||||
, pytestCheckHook
|
||||
, ipython
|
||||
, cython
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "psd-tools";
|
||||
version = "1.9.21";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-BlfJnC03W0BEOr2Nav0Tj0fzjwAVlTPjyN0KmxxQMVI=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "psd-tools";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-+nqN7DJHbr7XkfG0oUQkWcxv+krR8DlQndAQCvnBk3s=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cython ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aggdraw
|
||||
docopt
|
||||
ipython
|
||||
pillow
|
||||
] ++ lib.optionals isPy27 [ enum34 ];
|
||||
scikitimage
|
||||
];
|
||||
|
||||
meta = {
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
|
||||
pythonImportsCheck = [ "psd_tools" ];
|
||||
|
||||
meta = with lib; {
|
||||
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
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ onny ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user