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