Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / simplehound / default.nix
blob1ecd446c5b48f6b7a62cb77b79e8b11946b91d60
1 { lib
2 , requests
3 , buildPythonPackage
4 , fetchFromGitHub
5 , pytestCheckHook
6 , pythonOlder
7 , requests-mock
8 }:
10 buildPythonPackage rec {
11   pname = "simplehound";
12   version = "0.6";
13   disabled = pythonOlder "3.6";
15   src = fetchFromGitHub {
16     owner = "robmarkcole";
17     repo = pname;
18     rev = "v${version}";
19     sha256 = "1b5m3xjmk0l6ynf0yvarplsfsslgklalfcib7sikxg3v5hiv9qwh";
20   };
22   propagatedBuildInputs = [ requests ];
24   checkInputs = [
25     requests-mock
26     pytestCheckHook
27   ];
29   pythonImportsCheck = [ "simplehound" ];
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   };