Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

51 lines
913 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
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 = with lib; {
description = "KLayouts Python API";
homepage = "https://github.com/KLayout/klayout";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ fbeffa ];
platforms = platforms.linux ++ platforms.darwin;
};
}