Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 83 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384{ lib, buildPythonPackage, fetchFromGitHub, python,
# build-system cython, setuptools,
# optional numpy,
# tests hypothesis, pytest-cov-stub, pytestCheckHook, sympy,}:
buildPythonPackage rec { pname = "ndindex"; version = "1.9.2"; pyproject = true;
src = fetchFromGitHub { owner = "Quansight-Labs"; repo = "ndindex"; tag = version; hash = "sha256-5S4HN5MFLgURImwFsyyTOxDhrZJ5Oe+Ln/TA/bsCsek="; };
build-system = [ cython setuptools ];
postPatch = '' substituteInPlace pytest.ini \ --replace-fail "--flakes" "" '';
optional-dependencies.arrays = [ numpy ];
pythonImportsCheck = [ "ndindex" ];
# fix Hypothesis timeouts preCheck = '' cd $out
echo > ${python.sitePackages}/ndindex/tests/conftest.py <<EOF
import hypothesis
hypothesis.settings.register_profile( "ci", deadline=None, print_blob=True, derandomize=True, ) EOF '';
nativeCheckInputs = [ hypothesis pytest-cov-stub pytestCheckHook sympy ] ++ optional-dependencies.arrays;
pytestFlags = [ "--hypothesis-profile=ci" ];
meta = with lib; { description = "Python library for manipulating indices of ndarrays"; homepage = "https://github.com/Quansight-Labs/ndindex"; changelog = "https://github.com/Quansight-Labs/ndindex/releases/tag/${version}"; license = licenses.mit; maintainers = [ ]; };}