Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 75 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576{ 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 = [ "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 ]; };}