Files
nixpkgs/pkgs/development/python-modules/newversion/default.nix
T
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

49 lines
926 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, packaging
, poetry-core
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "newversion";
version = "2.0.0";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "vemel";
repo = "newversion";
rev = "refs/tags/${version}";
hash = "sha256-v9hfk2/hBkWtOobQdaYXNOZTTcEqnMV6JYqtjjoidOs=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
packaging
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"newversion"
];
meta = with lib; {
description = "PEP 440 version manager";
mainProgram = "newversion";
homepage = "https://github.com/vemel/newversion";
changelog = "https://github.com/vemel/newversion/releases/tag/${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}