blob: 08a06b34e9b528240582c053c8bf8ac92cdbb857 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
{
lib,
buildPythonPackage,
fetchPypi,
curl,
cython,
expat,
libpng,
setuptools,
stdenv,
fixDarwinDylibNames,
}:
buildPythonPackage rec {
pname = "klayout";
version = "0.30.4.post1";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-jQLVD3IsekQfO0P80miKOtyTyGldc2Vn/mJFfvvgMFo=";
};
build-system = [
cython
setuptools
];
buildInputs = [
curl
expat
libpng
];
# libpng-config is needed for the build on Darwin
nativeBuildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
libpng.dev
fixDarwinDylibNames
];
pythonImportsCheck = [ "klayout" ];
meta = {
description = "KLayout’s Python API";
homepage = "https://github.com/KLayout/klayout";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ fbeffa ];
platforms = lib.platforms.linux ++ lib.platforms.darwin;
};
}
|