blob: 2d9ab8381953676337cb2690d2a1da41b8bcb6ee (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
{
lib,
buildPythonPackage,
fetchPypi,
cython,
numpy,
oldest-supported-numpy,
pynose,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
version = "0.14.2";
pname = "hdmedians";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-tHrssWdx4boHNlVyVdgK4CQLCRVr/0NDId5VmzWawtY=";
};
postPatch = ''
substituteInPlace setup.py \
--replace-fail "'nose>=1.0'," ""
'';
build-system = [
cython
oldest-supported-numpy
setuptools
];
dependencies = [ numpy ];
pythonImportsCheck = [ "hdmedians" ];
nativeCheckInputs = [
pynose
pytestCheckHook
];
preCheck = ''
cd $out
'';
meta = with lib; {
homepage = "https://github.com/daleroberts/hdmedians";
description = "High-dimensional medians";
license = licenses.asl20;
maintainers = [ ];
};
}
|