blob: 2325976d499f72b6cc1baed48bdcdc1ecedb6751 (
plain)
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
|
{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "toolz";
version = "1.1.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-J6XHcNBowRDZ7ZMj8k8VQ+g7LzAKaHt4kcGm1Wtpe1s=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail '"setuptools-git-versioning >=2.0",' "" \
--replace-fail 'dynamic = ["version"]' 'version = "${version}"'
'';
build-system = [
setuptools
];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
homepage = "https://github.com/pytoolz/toolz";
changelog = "https://github.com/pytoolz/toolz/releases/tag/${version}";
description = "List processing tools and functional utilities";
license = lib.licenses.bsd3;
};
}
|