2023-11-16 04:20:00 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2024-01-02 11:29:13 +00:00
|
|
|
, pytestCheckHook
|
2023-11-16 04:20:00 +00:00
|
|
|
, pythonOlder
|
2024-01-13 08:15:51 +00:00
|
|
|
, pythonRelaxDepsHook
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
, build
|
|
|
|
, coloredlogs
|
|
|
|
, packaging
|
2024-01-02 11:29:13 +00:00
|
|
|
, pip
|
2023-11-16 04:20:00 +00:00
|
|
|
, toml
|
|
|
|
, twine
|
|
|
|
, wheel
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bork";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "7.0.2";
|
2023-11-16 04:20:00 +00:00
|
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "duckinator";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-sHCPT6nTenE6mbTifNPtg0OMNIJCs7LRcF8Xuk+MwLs=";
|
2023-11-16 04:20:00 +00:00
|
|
|
};
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
|
|
|
"packaging"
|
|
|
|
"twine"
|
|
|
|
"wheel"
|
|
|
|
];
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
build
|
|
|
|
coloredlogs
|
|
|
|
packaging
|
2024-01-02 11:29:13 +00:00
|
|
|
pip
|
2023-11-16 04:20:00 +00:00
|
|
|
toml
|
|
|
|
twine
|
|
|
|
wheel
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"bork"
|
|
|
|
"bork.api"
|
|
|
|
"bork.cli"
|
|
|
|
];
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
|
|
"-m 'not network'"
|
|
|
|
];
|
|
|
|
|
2023-11-16 04:20:00 +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;
|
|
|
|
};
|
|
|
|
}
|