evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / newversion / default.nix
blob5017d68ebe4d86a6953d8fed3486a9440f7c72b3
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   packaging,
6   poetry-core,
7   pytestCheckHook,
8   pythonOlder,
9 }:
11 buildPythonPackage rec {
12   pname = "newversion";
13   version = "2.0.0";
14   format = "pyproject";
16   disabled = pythonOlder "3.8";
18   src = fetchFromGitHub {
19     owner = "vemel";
20     repo = "newversion";
21     rev = "refs/tags/${version}";
22     hash = "sha256-v9hfk2/hBkWtOobQdaYXNOZTTcEqnMV6JYqtjjoidOs=";
23   };
25   nativeBuildInputs = [ poetry-core ];
27   propagatedBuildInputs = [ packaging ];
29   nativeCheckInputs = [ pytestCheckHook ];
31   pythonImportsCheck = [ "newversion" ];
33   meta = with lib; {
34     description = "PEP 440 version manager";
35     mainProgram = "newversion";
36     homepage = "https://github.com/vemel/newversion";
37     changelog = "https://github.com/vemel/newversion/releases/tag/${version}";
38     license = with licenses; [ mit ];
39     maintainers = with maintainers; [ fab ];
40   };