Files
nixpkgs/pkgs/development/python-modules/bork/default.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

77 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
callPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
setuptools,
build,
coloredlogs,
importlib-metadata,
packaging,
pip,
toml,
urllib3,
}:
buildPythonPackage rec {
pname = "bork";
version = "9.0.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "duckinator";
repo = "bork";
tag = "v${version}";
hash = "sha256-YqvtOwd00TXD4I3fIQolvjHnjREvQgbdrEO9Z96v1Kk=";
};
build-system = [
setuptools
];
pythonRelaxDeps = [
"build"
"packaging"
"urllib3"
];
dependencies = [
build
coloredlogs
packaging
pip
urllib3
]
++ lib.optionals (pythonOlder "3.11") [ toml ]
++ lib.optionals (pythonOlder "3.10") [ importlib-metadata ];
pythonImportsCheck = [
"bork"
"bork.api"
"bork.cli"
];
nativeCheckInputs = [ pytestCheckHook ];
disabledTestMarks = [ "network" ];
disabledTests = [
# tries to call python -m bork
"test_repo"
];
passthru.tests = callPackage ./tests.nix { };
meta = with lib; {
description = "Python build and release management tool";
mainProgram = "bork";
homepage = "https://github.com/duckinator/bork";
license = licenses.mit;
maintainers = with maintainers; [ nicoo ];
};
}