at 23.05-pre 878 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, attrs 5, pytestCheckHook 6, typish 7, tzdata 8}: 9 10buildPythonPackage rec { 11 pname = "jsons"; 12 version = "1.6.3"; 13 14 src = fetchFromGitHub { 15 owner = "ramonhagenaars"; 16 repo = "jsons"; 17 rev = "v${version}"; 18 sha256 = "0sdwc57f3lwzhbcapjdbay9f8rn65rlspxa67a2i5apcgg403qpc"; 19 }; 20 21 propagatedBuildInputs = [ 22 typish 23 ]; 24 25 checkInputs = [ 26 attrs 27 pytestCheckHook 28 tzdata 29 ]; 30 31 disabledTestPaths = [ 32 # These tests are based on timings, which fail 33 # on slow or overloaded machines. 34 "tests/test_performance.py" 35 ]; 36 37 pythonImportsCheck = [ 38 "jsons" 39 ]; 40 41 meta = with lib; { 42 description = "Turn Python objects into dicts or json strings and back"; 43 homepage = "https://github.com/ramonhagenaars/jsons"; 44 license = licenses.mit; 45 maintainers = with maintainers; [ fmoda3 ]; 46 }; 47}