croc: 10.1.1 -> 10.1.3 (#364662)
[NixPkgs.git] / pkgs / development / python-modules / newversion / default.nix
blobc3baffd2d2cc5a2d9ba03b16fe4bf9fbb7db5205
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   packaging,
6   pytestCheckHook,
7   pythonOlder,
8   setuptools,
9   typing-extensions,
12 buildPythonPackage rec {
13   pname = "newversion";
14   version = "3.1.0";
15   pyproject = true;
17   disabled = pythonOlder "3.9";
19   src = fetchFromGitHub {
20     owner = "vemel";
21     repo = "newversion";
22     rev = "refs/tags/${version}";
23     hash = "sha256-R26yZQnQN/+e8XD3YKl+3bJKGnZaVzOVoTlGHOyratg=";
24   };
26   nativeBuildInputs = [ setuptools ];
28   propagatedBuildInputs = [
29     packaging
30     typing-extensions
31   ];
33   nativeCheckInputs = [ pytestCheckHook ];
35   pythonImportsCheck = [ "newversion" ];
37   meta = with lib; {
38     description = "PEP 440 version manager";
39     homepage = "https://github.com/vemel/newversion";
40     changelog = "https://github.com/vemel/newversion/releases/tag/${version}";
41     license = licenses.mit;
42     maintainers = with maintainers; [ fab ];
43     mainProgram = "newversion";
44   };