Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 70 lines
Nix
at master
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071{ lib, buildPythonPackage, fetchFromGitLab, poetry-core, protoletariat, mypy-protobuf, pkgs, protobuf, pynng, pytestCheckHook, gitMinimal, pythonOlder, typing-extensions,}:buildPythonPackage rec { pname = "kicad-python"; version = "0.4.0"; pyproject = true;
src = fetchFromGitLab { owner = "kicad/code"; repo = "kicad-python"; tag = version; hash = "sha256-M2vJ/lSwc1XjrG661ayNIOZKJitmy/UPM2SesQI1xYE="; fetchSubmodules = true; };
build-system = [ poetry-core protoletariat ];
dependencies = [ protobuf pynng mypy-protobuf ] ++ (lib.optional (pythonOlder "3.13") typing-extensions);
nativeBuildInputs = [ pkgs.protobuf mypy-protobuf gitMinimal ];
pythonRelaxDeps = [ "protobuf" ];
# fixes: FileExistsError: File already exists .../kipy/__init__.py postPatch = '' substituteInPlace pyproject.toml \ --replace-fail 'script =' "#" '';
preBuild = '' python build.py '';
pythonImportsCheck = [ "kipy" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = { description = "KiCad API Python Bindings"; homepage = "https://kicad.org/"; downloadPage = "https://gitlab.com/kicad/code/kicad-python"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ sigmanificient ]; };}