tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
python310Packages.psd-tools: Unbreak package
Jonas Heinrich
3 years ago
526c112e
dfe66788
+27
-8
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
psd-tools
default.nix
+27
-8
pkgs/development/python-modules/psd-tools/default.nix
···
1
1
-
{ lib, buildPythonPackage, fetchPypi, isPy27
1
1
+
{ lib
2
2
+
, buildPythonPackage
3
3
+
, fetchFromGitHub
4
4
+
, isPy27
2
5
, docopt
3
6
, pillow
4
7
, enum34
8
8
+
, scikitimage
9
9
+
, aggdraw
10
10
+
, pytestCheckHook
11
11
+
, ipython
12
12
+
, cython
5
13
}:
6
14
7
15
buildPythonPackage rec {
8
16
pname = "psd-tools";
9
17
version = "1.9.21";
10
18
11
11
-
src = fetchPypi {
12
12
-
inherit pname version;
13
13
-
sha256 = "sha256-BlfJnC03W0BEOr2Nav0Tj0fzjwAVlTPjyN0KmxxQMVI=";
19
19
+
src = fetchFromGitHub {
20
20
+
owner = "psd-tools";
21
21
+
repo = pname;
22
22
+
rev = "v${version}";
23
23
+
sha256 = "sha256-+nqN7DJHbr7XkfG0oUQkWcxv+krR8DlQndAQCvnBk3s=";
14
24
};
15
25
26
26
+
nativeBuildInputs = [ cython ];
27
27
+
16
28
propagatedBuildInputs = [
29
29
+
aggdraw
17
30
docopt
31
31
+
ipython
18
32
pillow
19
19
-
] ++ lib.optionals isPy27 [ enum34 ];
33
33
+
scikitimage
34
34
+
];
35
35
+
36
36
+
checkInputs = [ pytestCheckHook ];
37
37
+
38
38
+
pythonImportsCheck = [ "psd_tools" ];
20
39
21
21
-
meta = {
40
40
+
meta = with lib; {
22
41
description = "Python package for reading Adobe Photoshop PSD files";
23
42
homepage = "https://github.com/kmike/psd-tools";
24
24
-
license = lib.licenses.mit;
25
25
-
broken = true; # missing packbits from nixpkgs
43
43
+
license = licenses.mit;
44
44
+
maintainers = with maintainers; [ onny ];
26
45
};
27
46
}