about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/brottsplatskartan/default.nix
blob: 4c4a0dcbc8fbd1a6e898b96a392c929e5243f283 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytest-cov
, pytestCheckHook
, requests
}:

buildPythonPackage rec {
  pname = "brottsplatskartan";
  version = "1.0.5";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "chrillux";
    repo = pname;
    rev = version;
    sha256 = "07iwmnchvpw156j23yfccg4c32izbwm8b02bjr1xgmcwzbq21ks9";
  };

  propagatedBuildInputs = [ requests ];

  nativeCheckInputs = [
    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 ];
  };
}