blob: 328161064375913d15a0a9098f27113da6f34937 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
packaging,
pytestCheckHook,
setuptools,
typing-extensions,
}:
buildPythonPackage rec {
pname = "newversion";
version = "3.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "vemel";
repo = "newversion";
tag = version;
hash = "sha256-R26yZQnQN/+e8XD3YKl+3bJKGnZaVzOVoTlGHOyratg=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
packaging
typing-extensions
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "newversion" ];
meta = {
description = "PEP 440 version manager";
homepage = "https://github.com/vemel/newversion";
changelog = "https://github.com/vemel/newversion/releases/tag/${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "newversion";
};
}
|