at master 960 B view raw
1{ 2 lib, 3 fetchFromGitHub, 4 buildPythonPackage, 5 setuptools, 6 pytestCheckHook, 7 pytest-cov-stub, 8 sortedcontainers, 9}: 10 11buildPythonPackage rec { 12 pname = "strct"; 13 version = "0.0.35"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "shaypal5"; 18 repo = "strct"; 19 tag = "v${version}"; 20 hash = "sha256-4IykGzy1PTrRAbx/sdtzL4My4cDSlplL9rOFBcLbaB8="; 21 }; 22 23 # don't append .dev0 to version 24 env.RELEASING_PROCESS = "1"; 25 26 nativeBuildInputs = [ setuptools ]; 27 28 nativeCheckInputs = [ 29 pytestCheckHook 30 pytest-cov-stub 31 sortedcontainers 32 ]; 33 34 pythonImportsCheck = [ 35 "strct" 36 "strct.dicts" 37 "strct.hash" 38 "strct.lists" 39 "strct.sets" 40 "strct.sortedlists" 41 ]; 42 43 meta = with lib; { 44 description = "Small pure-python package for data structure related utility functions"; 45 homepage = "https://github.com/shaypal5/strct"; 46 license = licenses.mit; 47 maintainers = with maintainers; [ pbsds ]; 48 }; 49}