Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 1.3 kB view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4 5# build-system 6, cython 7 8# optional 9, numpy 10 11# tests 12, hypothesis 13, pytest-cov 14, pytestCheckHook 15}: 16 17buildPythonPackage rec { 18 pname = "ndindex"; 19 version = "1.7"; 20 format = "setuptools"; 21 22 src = fetchFromGitHub { 23 owner = "Quansight-Labs"; 24 repo = "ndindex"; 25 rev = "refs/tags/${version}"; 26 hash = "sha256-JP0cEuxXfPTWc1EIUtMsy5Hx6eIo9vDzD0IUXm1lFME="; 27 }; 28 29 nativeBuildInputs = [ 30 cython 31 ]; 32 33 postPatch = '' 34 substituteInPlace pytest.ini \ 35 --replace "--cov=ndindex/ --cov-report=term-missing --flakes" "" 36 ''; 37 38 passthru.optional-dependencies.arrays = [ 39 numpy 40 ]; 41 42 pythonImportsCheck = [ 43 "ndindex" 44 ]; 45 46 nativeCheckInputs = [ 47 hypothesis 48 pytest-cov # uses cov markers 49 pytestCheckHook 50 ] ++ passthru.optional-dependencies.arrays; 51 52 pytestFlagsArray = [ 53 # pytest.PytestRemovedIn8Warning: Passing None has been deprecated. 54 "--deselect=ndindex/tests/test_ndindex.py::test_ndindex_invalid" 55 ]; 56 57 meta = with lib; { 58 description = ""; 59 homepage = "https://github.com/Quansight-Labs/ndindex"; 60 changelog = "https://github.com/Quansight-Labs/ndindex/releases/tag/${version}"; 61 license = licenses.mit; 62 maintainers = with maintainers; [ ]; 63 }; 64}