blob: c7fc3443f7c5318acb587cdbfe9f51d8c811608d (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
python-dateutil,
six,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "bson";
version = "0.5.10";
format = "setuptools";
src = fetchFromGitHub {
owner = "py-bson";
repo = "bson";
tag = version;
hash = "sha256-mirRpo27RoOBlwxVOKnHaDIzJOErp7c2VxCOunUm/u4=";
};
postPatch = ''
find . -type f -name '*.py' -exec sed -i 's|assertEquals|assertEqual|g' {} +
'';
propagatedBuildInputs = [
python-dateutil
six
];
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "bson" ];
meta = {
description = "BSON codec for Python";
homepage = "https://github.com/py-bson/bson";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}
|