xeus-cling: fix improper linking with LLVM (#351130)
[NixPkgs.git] / pkgs / development / python-modules / hdmedians / default.nix
blob0b175669db515ac4b5473b88237efa48bd7b91c0
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   cython,
6   numpy,
7   oldest-supported-numpy,
8   pytestCheckHook,
9   setuptools,
12 buildPythonPackage rec {
13   version = "0.14.2";
14   pname = "hdmedians";
15   pyproject = true;
17   src = fetchPypi {
18     inherit pname version;
19     hash = "sha256-tHrssWdx4boHNlVyVdgK4CQLCRVr/0NDId5VmzWawtY=";
20   };
22   patches = [
23     # https://github.com/daleroberts/hdmedians/pull/10
24     ./replace-nose.patch
25   ];
27   postPatch = ''
28     substituteInPlace setup.py \
29       --replace-fail "'nose>=1.0'," ""
30   '';
32   build-system = [
33     cython
34     oldest-supported-numpy
35     setuptools
36   ];
38   dependencies = [ numpy ];
40   pythonImportsCheck = [ "hdmedians" ];
42   nativeCheckInputs = [
43     pytestCheckHook
44   ];
46   preCheck = ''
47     cd $out
48   '';
50   meta = with lib; {
51     homepage = "https://github.com/daleroberts/hdmedians";
52     description = "High-dimensional medians";
53     license = licenses.asl20;
54     maintainers = [ ];
55   };