1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 curl,
6 cython,
7 expat,
8 libpng,
9 setuptools,
10}:
11
12buildPythonPackage rec {
13 pname = "klayout";
14 version = "0.30.0";
15 pyproject = true;
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-JMCc/jWZ5tpN7FaoswVS5r5GHP9qXz9SA5hiKS+1P38=";
20 };
21
22 build-system = [
23 cython
24 setuptools
25 ];
26
27 buildInputs = [
28 curl
29 expat
30 libpng
31 ];
32
33 pythonImportsCheck = [ "klayout" ];
34
35 meta = with lib; {
36 description = "KLayout’s Python API";
37 homepage = "https://github.com/KLayout/klayout";
38 license = licenses.gpl3Plus;
39 maintainers = with maintainers; [ fbeffa ];
40 platforms = platforms.linux;
41 };
42}