depot/third_party/nixpkgs/pkgs/development/python-modules/brottsplatskartan/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

35 lines
720 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytest-cov
, pytestCheckHook
, requests
}:
buildPythonPackage rec {
pname = "brottsplatskartan";
version = "1.0.5";
src = fetchFromGitHub {
owner = "chrillux";
repo = pname;
rev = version;
sha256 = "07iwmnchvpw156j23yfccg4c32izbwm8b02bjr1xgmcwzbq21ks9";
};
propagatedBuildInputs = [ requests ];
checkInputs = [
pytest-cov
pytestCheckHook
];
pythonImportsCheck = [ "brottsplatskartan" ];
meta = with lib; {
description = "Python API wrapper for brottsplatskartan.se";
homepage = "https://github.com/chrillux/brottsplatskartan";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}