summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/simplehound/default.nix
blob: e620f3aa8c6add1366f7b96ce2c50690f566ef2a (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,
  requests,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
  requests-mock,
}:

buildPythonPackage rec {
  pname = "simplehound";
  version = "0.6";
  format = "setuptools";

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

  propagatedBuildInputs = [ requests ];

  nativeCheckInputs = [
    requests-mock
    pytestCheckHook
  ];

  pythonImportsCheck = [ "simplehound" ];

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