Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 47 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, poetry-core, pytest-snapshot, pytestCheckHook,}:
buildPythonPackage rec { pname = "awesomeversion"; version = "24.6.0"; pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub { owner = "ludeeus"; repo = "awesomeversion"; tag = version; hash = "sha256-lpG42Be0MVinWX5MyDvBPdoZFx66l6tpUxpAJRqEf88="; };
postPatch = '' # Upstream doesn't set a version substituteInPlace pyproject.toml \ --replace-fail 'version = "0"' 'version = "${version}"' '';
nativeBuildInputs = [ poetry-core ];
pythonImportsCheck = [ "awesomeversion" ];
nativeCheckInputs = [ pytest-snapshot pytestCheckHook ];
meta = with lib; { description = "Python module to deal with versions"; homepage = "https://github.com/ludeeus/awesomeversion"; changelog = "https://github.com/ludeeus/awesomeversion/releases/tag/${version}"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ]; };}