Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 fetchFromGitHub, 4 buildPythonPackage, 5 setuptools, 6 pytestCheckHook, 7 sortedcontainers, 8}: 9 10buildPythonPackage rec { 11 pname = "strct"; 12 version = "0.0.34"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "shaypal5"; 17 repo = "strct"; 18 rev = "v${version}"; 19 hash = "sha256-uPM2U+emZUCGqEhIeTBmaOu8eSfK4arqvv9bItBWpUs="; 20 }; 21 22 postPatch = '' 23 substituteInPlace pyproject.toml \ 24 --replace-fail \ 25 '"--cov' \ 26 '#"--cov' 27 ''; 28 29 # don't append .dev0 to version 30 env.RELEASING_PROCESS = "1"; 31 32 nativeBuildInputs = [ setuptools ]; 33 34 nativeCheckInputs = [ 35 pytestCheckHook 36 sortedcontainers 37 ]; 38 39 pythonImportsCheck = [ 40 "strct" 41 "strct.dicts" 42 "strct.hash" 43 "strct.lists" 44 "strct.sets" 45 "strct.sortedlists" 46 ]; 47 48 meta = with lib; { 49 description = "Small pure-python package for data structure related utility functions"; 50 homepage = "https://github.com/shaypal5/strct"; 51 license = licenses.mit; 52 maintainers = with maintainers; [ pbsds ]; 53 }; 54}