Something went wrong. Try again.
lol
Something went wrong. Try again.
879 B · 42 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243{ 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"; };}