blob: 36adcc56a3a27efa4f05e57ef2610a230f32c1e4 (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
hypothesis,
pytest-xdist,
pytestCheckHook,
typing-extensions,
wheel,
}:
buildPythonPackage rec {
pname = "bidict";
version = "0.23.1";
pyproject = true;
src = fetchFromGitHub {
owner = "jab";
repo = "bidict";
tag = "v${version}";
hash = "sha256-WE0YaRT4a/byvU2pzcByuf1DfMlOpYA9i0PPrKXsS+M=";
};
build-system = [
setuptools
wheel
];
nativeCheckInputs = [
hypothesis
pytest-xdist
pytestCheckHook
typing-extensions
];
# Remove the bundled pytest.ini, which adds options to run additional integration
# tests that are overkill for our purposes.
preCheck = ''
rm pytest.ini
'';
pythonImportsCheck = [ "bidict" ];
meta = {
homepage = "https://bidict.readthedocs.io";
changelog = "https://bidict.readthedocs.io/changelog.html";
description = "Bidirectional mapping library for Python";
license = lib.licenses.mpl20;
maintainers = with lib.maintainers; [
jab
jakewaksbaum
];
};
}
|