about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pyalmond/default.nix
blob: 59a9339c2649c218277fe2284660d132047631cd (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
{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
}:

buildPythonPackage rec {
  pname = "pyalmond";
  version = "0.0.3";
  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "stanford-oval";
    repo = pname;
    rev = "v${version}";
    sha256 = "0d1w83lr7k2wxcs846iz4mjyqn1ximnw6155kgl515v10fqyrhgk";
  };

  propagatedBuildInputs = [ aiohttp ];

  # Tests require a running Almond instance
  doCheck = false;
  pythonImportsCheck = [ "pyalmond" ];

  meta = with lib; {
    description = "Python client for the Almond API";
    homepage = "https://github.com/stanford-oval/pyalmond";
    license = with licenses; [ bsd3 ];
    maintainers = with maintainers; [ fab ];
  };
}