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