about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/simplehound/default.nix
blob: 1ecd446c5b48f6b7a62cb77b79e8b11946b91d60 (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
37
{ lib
, requests
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, requests-mock
}:

buildPythonPackage rec {
  pname = "simplehound";
  version = "0.6";
  disabled = pythonOlder "3.6";

  src = fetchFromGitHub {
    owner = "robmarkcole";
    repo = pname;
    rev = "v${version}";
    sha256 = "1b5m3xjmk0l6ynf0yvarplsfsslgklalfcib7sikxg3v5hiv9qwh";
  };

  propagatedBuildInputs = [ requests ];

  checkInputs = [
    requests-mock
    pytestCheckHook
  ];

  pythonImportsCheck = [ "simplehound" ];

  meta = with lib; {
    description = "Python API for Sighthound";
    homepage = "https://github.com/robmarkcole/simplehound";
    license = with licenses; [ asl20 ];
    maintainers = with maintainers; [ fab ];
  };
}