1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 python-dateutil,
6 six,
7}:
8
9buildPythonPackage rec {
10 pname = "bson";
11 version = "0.5.10";
12 format = "setuptools";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "14355m3dchz446fl54ym78bn4wi20hddx1614f8rl4sin0m1nlfn";
17 };
18
19 propagatedBuildInputs = [
20 python-dateutil
21 six
22 ];
23
24 # 0.5.10 was not tagged, https://github.com/py-bson/bson/issues/108
25 doCheck = false;
26
27 pythonImportsCheck = [ "bson" ];
28
29 meta = with lib; {
30 description = "BSON codec for Python";
31 homepage = "https://github.com/py-bson/bson";
32 license = licenses.asl20;
33 maintainers = with maintainers; [ fab ];
34 };
35}