Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 829 B view raw
1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchFromGitHub 5, pretend 6, pytestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "calver"; 11 version = "2022.06.26"; 12 13 disabled = pythonOlder "3.5"; 14 15 format = "setuptools"; 16 17 src = fetchFromGitHub { 18 owner = "di"; 19 repo = "calver"; 20 rev = version; 21 hash = "sha256-YaXTkeUazwzghCX96Wfx39hGvukWKtHMLLeyF9OeiZI="; 22 }; 23 24 postPatch = '' 25 substituteInPlace setup.py \ 26 --replace "version=calver_version(True)" 'version="${version}"' 27 ''; 28 29 nativeCheckInputs = [ 30 pretend 31 pytestCheckHook 32 ]; 33 34 pythonImportsCheck = [ "calver" ]; 35 36 meta = { 37 description = "Setuptools extension for CalVer package versions"; 38 homepage = "https://github.com/di/calver"; 39 license = lib.licenses.asl20; 40 maintainers = with lib.maintainers; [ dotlambda ]; 41 }; 42}