Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 attrs, 4 fetchFromGitHub, 5 buildPythonPackage, 6 pytestCheckHook, 7 pythonOlder, 8}: 9 10buildPythonPackage rec { 11 pname = "jsonlines"; 12 version = "3.1.0"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.6"; 16 17 src = fetchFromGitHub { 18 owner = "wbolster"; 19 repo = pname; 20 rev = version; 21 hash = "sha256-eMpUk5s49OyD+cNGdAeKA2LvpXdKta2QjZIFDnIBKC8="; 22 }; 23 24 propagatedBuildInputs = [ attrs ]; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 28 pythonImportsCheck = [ "jsonlines" ]; 29 30 meta = with lib; { 31 description = "Python library to simplify working with jsonlines and ndjson data"; 32 homepage = "https://github.com/wbolster/jsonlines"; 33 license = licenses.bsd3; 34 maintainers = [ ]; 35 }; 36}