1{ lib
2, requests
3, buildPythonPackage
4, fetchFromGitHub
5, pytestCheckHook
6, pythonOlder
7, requests-mock
8}:
9
10buildPythonPackage rec {
11 pname = "simplehound";
12 version = "0.6";
13 disabled = pythonOlder "3.6";
14
15 src = fetchFromGitHub {
16 owner = "robmarkcole";
17 repo = pname;
18 rev = "v${version}";
19 sha256 = "1b5m3xjmk0l6ynf0yvarplsfsslgklalfcib7sikxg3v5hiv9qwh";
20 };
21
22 propagatedBuildInputs = [ requests ];
23
24 checkInputs = [
25 requests-mock
26 pytestCheckHook
27 ];
28
29 pythonImportsCheck = [ "simplehound" ];
30
31 meta = with lib; {
32 description = "Python API for Sighthound";
33 homepage = "https://github.com/robmarkcole/simplehound";
34 license = with licenses; [ asl20 ];
35 maintainers = with maintainers; [ fab ];
36 };
37}