croc: 10.1.1 -> 10.1.3 (#364662)
[NixPkgs.git] / pkgs / development / python-modules / simplehound / default.nix
blobbf2efed90c09a97da37b9eaa397b0537aa212367
2   lib,
3   requests,
4   buildPythonPackage,
5   fetchFromGitHub,
6   pytestCheckHook,
7   pythonOlder,
8   requests-mock,
9 }:
11 buildPythonPackage rec {
12   pname = "simplehound";
13   version = "0.6";
14   format = "setuptools";
15   disabled = pythonOlder "3.6";
17   src = fetchFromGitHub {
18     owner = "robmarkcole";
19     repo = pname;
20     rev = "v${version}";
21     sha256 = "1b5m3xjmk0l6ynf0yvarplsfsslgklalfcib7sikxg3v5hiv9qwh";
22   };
24   propagatedBuildInputs = [ requests ];
26   nativeCheckInputs = [
27     requests-mock
28     pytestCheckHook
29   ];
31   pythonImportsCheck = [ "simplehound" ];
33   meta = with lib; {
34     description = "Python API for Sighthound";
35     homepage = "https://github.com/robmarkcole/simplehound";
36     license = with licenses; [ asl20 ];
37     maintainers = with maintainers; [ fab ];
38   };