blob: 0b175669db515ac4b5473b88237efa48bd7b91c0 (
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
54
55
56
|
{
lib,
buildPythonPackage,
fetchPypi,
cython,
numpy,
oldest-supported-numpy,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
version = "0.14.2";
pname = "hdmedians";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-tHrssWdx4boHNlVyVdgK4CQLCRVr/0NDId5VmzWawtY=";
};
patches = [
# https://github.com/daleroberts/hdmedians/pull/10
./replace-nose.patch
];
postPatch = ''
substituteInPlace setup.py \
--replace-fail "'nose>=1.0'," ""
'';
build-system = [
cython
oldest-supported-numpy
setuptools
];
dependencies = [ numpy ];
pythonImportsCheck = [ "hdmedians" ];
nativeCheckInputs = [
pytestCheckHook
];
preCheck = ''
cd $out
'';
meta = with lib; {
homepage = "https://github.com/daleroberts/hdmedians";
description = "High-dimensional medians";
license = licenses.asl20;
maintainers = [ ];
};
}
|