2023-10-30 23:09:06 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2023-11-17 11:20:21 +00:00
|
|
|
, pytestCheckHook
|
2023-10-30 23:09:06 +00:00
|
|
|
, pythonOlder
|
|
|
|
|
|
|
|
, build
|
|
|
|
, coloredlogs
|
|
|
|
, packaging
|
2023-11-09 13:06:41 +00:00
|
|
|
, pip
|
2023-10-30 23:09:06 +00:00
|
|
|
, toml
|
|
|
|
, twine
|
|
|
|
, wheel
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bork";
|
2023-11-21 19:15:00 +00:00
|
|
|
version = "7.0.2";
|
2023-10-30 23:09:06 +00:00
|
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "duckinator";
|
|
|
|
repo = pname;
|
2023-11-21 19:15:00 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-sHCPT6nTenE6mbTifNPtg0OMNIJCs7LRcF8Xuk+MwLs=";
|
2023-10-30 23:09:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
build
|
|
|
|
coloredlogs
|
|
|
|
packaging
|
2023-11-09 13:06:41 +00:00
|
|
|
pip
|
2023-10-30 23:09:06 +00:00
|
|
|
toml
|
|
|
|
twine
|
|
|
|
wheel
|
|
|
|
];
|
|
|
|
|
2023-11-05 22:56:16 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"bork"
|
|
|
|
"bork.api"
|
|
|
|
"bork.cli"
|
|
|
|
];
|
|
|
|
|
2023-11-17 11:20:21 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
|
|
"-m 'not network'"
|
|
|
|
];
|
|
|
|
|
2023-10-30 23:09:06 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Python build and release management tool";
|
|
|
|
homepage = "https://github.com/duckinator/bork";
|
|
|
|
maintainers = with maintainers; [ nicoo ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|