1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 packaging, 6 poetry-core, 7 pytestCheckHook, 8 pythonOlder, 9}: 10 11buildPythonPackage rec { 12 pname = "newversion"; 13 version = "2.0.0"; 14 format = "pyproject"; 15 16 disabled = pythonOlder "3.8"; 17 18 src = fetchFromGitHub { 19 owner = "vemel"; 20 repo = "newversion"; 21 rev = "refs/tags/${version}"; 22 hash = "sha256-v9hfk2/hBkWtOobQdaYXNOZTTcEqnMV6JYqtjjoidOs="; 23 }; 24 25 nativeBuildInputs = [ poetry-core ]; 26 27 propagatedBuildInputs = [ packaging ]; 28 29 nativeCheckInputs = [ pytestCheckHook ]; 30 31 pythonImportsCheck = [ "newversion" ]; 32 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 }; 41}