Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytest-cov 5, pytestCheckHook 6, requests 7}: 8 9buildPythonPackage rec { 10 pname = "brottsplatskartan"; 11 version = "1.0.5"; 12 13 src = fetchFromGitHub { 14 owner = "chrillux"; 15 repo = pname; 16 rev = version; 17 sha256 = "07iwmnchvpw156j23yfccg4c32izbwm8b02bjr1xgmcwzbq21ks9"; 18 }; 19 20 propagatedBuildInputs = [ requests ]; 21 22 nativeCheckInputs = [ 23 pytest-cov 24 pytestCheckHook 25 ]; 26 27 pythonImportsCheck = [ "brottsplatskartan" ]; 28 29 meta = with lib; { 30 description = "Python API wrapper for brottsplatskartan.se"; 31 homepage = "https://github.com/chrillux/brottsplatskartan"; 32 license = with licenses; [ mit ]; 33 maintainers = with maintainers; [ fab ]; 34 }; 35}