Merge pull request #113776 from fabaff/pyalmond

This commit is contained in:
Sandro 2021-02-21 05:06:02 +01:00 committed by GitHub
commit 3c580b5b61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 35 additions and 1 deletions

View file

@ -0,0 +1,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 ];
};
}

View file

@ -23,7 +23,7 @@
"alarmdecoder" = ps: with ps; [ adext ];
"alert" = ps: with ps; [ ];
"alexa" = ps: with ps; [ aiohttp-cors ];
"almond" = ps: with ps; [ aiohttp-cors ]; # missing inputs: pyalmond
"almond" = ps: with ps; [ aiohttp-cors pyalmond ];
"alpha_vantage" = ps: with ps; [ ]; # missing inputs: alpha_vantage
"amazon_polly" = ps: with ps; [ boto3 ];
"ambiclimate" = ps: with ps; [ aiohttp-cors ambiclimate ];

View file

@ -5231,6 +5231,8 @@ in {
pyalgotrade = callPackage ../development/python-modules/pyalgotrade { };
pyalmond = callPackage ../development/python-modules/pyalmond { };
pyamf = callPackage ../development/python-modules/pyamf { };
pyamg = callPackage ../development/python-modules/pyamg { };