Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
56 lines
1.0 KiB
Nix
56 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
hatchling,
|
|
hatch-vcs,
|
|
typing-extensions,
|
|
pytestCheckHook,
|
|
kicad,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "kicadcliwrapper";
|
|
version = "1.1.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "atopile";
|
|
repo = "kicadcliwrapper";
|
|
tag = "v${version}";
|
|
hash = "sha256-s1j0k6SvZiIHu8PKGTR+GaYUZIlFq5TKYuxoCsvsvUY=";
|
|
};
|
|
|
|
build-system = [
|
|
hatchling
|
|
hatch-vcs
|
|
];
|
|
|
|
dependencies = [ typing-extensions ];
|
|
|
|
pythonRemoveDeps = [ "black" ];
|
|
|
|
pythonImportsCheck = [
|
|
"kicadcliwrapper"
|
|
"kicadcliwrapper.lib"
|
|
];
|
|
|
|
# this script is used to generate the bindings
|
|
# and is intended for development.
|
|
preCheck = ''
|
|
rm src/kicadcliwrapper/main.py
|
|
'';
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
kicad
|
|
];
|
|
|
|
meta = {
|
|
description = "Strongly typed, auto-generated bindings for KiCAD's CLI";
|
|
homepage = "https://github.com/atopile/kicadcliwrapper";
|
|
license = with lib.licenses; [ mit ];
|
|
maintainers = with lib.maintainers; [ sigmanificient ];
|
|
};
|
|
}
|