Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 50 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 rapidjson, 7 pytestCheckHook, 8 pytz, 9 setuptools, 10 substituteAll, 11}: 12 13buildPythonPackage rec { 14 version = "1.20"; 15 pname = "python-rapidjson"; 16 disabled = pythonOlder "3.8"; 17 18 pyproject = true; 19 20 src = fetchFromGitHub { 21 owner = "python-rapidjson"; 22 repo = "python-rapidjson"; 23 rev = "refs/tags/v${version}"; 24 hash = "sha256-xIswmHQMl5pAqvcTNqeuO3P6MynKt3ahzUgGQroaqmw="; 25 }; 26 27 patches = [ 28 (substituteAll { 29 src = ./rapidjson-include-dir.patch; 30 rapidjson = lib.getDev rapidjson; 31 }) 32 ]; 33 34 build-system = [ setuptools ]; 35 36 nativeCheckInputs = [ 37 pytestCheckHook 38 pytz 39 ]; 40 41 disabledTestPaths = [ "benchmarks" ]; 42 43 meta = with lib; { 44 changelog = "https://github.com/python-rapidjson/python-rapidjson/blob/${src.rev}/CHANGES.rst"; 45 homepage = "https://github.com/python-rapidjson/python-rapidjson"; 46 description = "Python wrapper around rapidjson"; 47 license = licenses.mit; 48 maintainers = with maintainers; [ dotlambda ]; 49 }; 50}