Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
829 B · 42 lines
Nix
at litex
12345678910111213141516171819202122232425262728293031323334353637383940414243{ lib, buildPythonPackage, pythonOlder, fetchFromGitHub, pretend, pytestCheckHook}:
buildPythonPackage rec { pname = "calver"; version = "2022.06.26";
disabled = pythonOlder "3.5";
format = "setuptools";
src = fetchFromGitHub { owner = "di"; repo = "calver"; rev = version; hash = "sha256-YaXTkeUazwzghCX96Wfx39hGvukWKtHMLLeyF9OeiZI="; };
postPatch = '' substituteInPlace setup.py \ --replace "version=calver_version(True)" 'version="${version}"' '';
nativeCheckInputs = [ pretend pytestCheckHook ];
pythonImportsCheck = [ "calver" ];
meta = { description = "Setuptools extension for CalVer package versions"; homepage = "https://github.com/di/calver"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ dotlambda ]; };}