at master 786 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 python-dateutil, 6 six, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "bson"; 12 version = "0.5.10"; 13 format = "setuptools"; 14 15 src = fetchFromGitHub { 16 owner = "py-bson"; 17 repo = "bson"; 18 tag = version; 19 hash = "sha256-mirRpo27RoOBlwxVOKnHaDIzJOErp7c2VxCOunUm/u4="; 20 }; 21 22 postPatch = '' 23 find . -type f -name '*.py' -exec sed -i 's|assertEquals|assertEqual|g' {} + 24 ''; 25 26 propagatedBuildInputs = [ 27 python-dateutil 28 six 29 ]; 30 31 checkInputs = [ pytestCheckHook ]; 32 33 pythonImportsCheck = [ "bson" ]; 34 35 meta = with lib; { 36 description = "BSON codec for Python"; 37 homepage = "https://github.com/py-bson/bson"; 38 license = licenses.asl20; 39 maintainers = with maintainers; [ fab ]; 40 }; 41}