summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/brottsplatskartan/default.nix
blob: 6dd41b9c60cc53b01782d94a2668e4f20a88d9e0 (plain)
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
37
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytest-cov-stub,
  pytestCheckHook,
  requests,
}:

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

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

  propagatedBuildInputs = [ requests ];

  nativeCheckInputs = [
    pytest-cov-stub
    pytestCheckHook
  ];

  pythonImportsCheck = [ "brottsplatskartan" ];

  meta = {
    description = "Python API wrapper for brottsplatskartan.se";
    homepage = "https://github.com/chrillux/brottsplatskartan";
    license = with lib.licenses; [ mit ];
    maintainers = with lib.maintainers; [ fab ];
  };
}