at 24.05-pre 861 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "lcgit"; 10 version = "0.2.0"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.7"; 14 15 src = fetchFromGitHub { 16 owner = "cisagov"; 17 repo = "lcgit"; 18 rev = "refs/tags/v${version}"; 19 hash = "sha256-MYRqlfz2MRayBT7YGZmcyqJdoDRfENmgxk/TmhyoAlQ="; 20 }; 21 22 postPatch = '' 23 substituteInPlace pytest.ini \ 24 --replace " --cov" "" 25 ''; 26 27 nativeCheckInputs = [ 28 pytestCheckHook 29 ]; 30 31 pythonImportsCheck = [ 32 "lcgit" 33 ]; 34 35 meta = with lib; { 36 description = "A pythonic Linear Congruential Generator iterator"; 37 homepage = "https://github.com/cisagov/lcgit"; 38 changelog = "https://github.com/cisagov/lcgit/releases/tag/v${version}"; 39 license = licenses.cc0; 40 maintainers = with maintainers; [ fab ]; 41 }; 42}