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