3
0
Fork 0
forked from mirrors/nixpkgs

python3Packages.pyairvisual: init at 1.0.0

This commit is contained in:
Robin Gloster 2018-05-22 03:11:58 +02:00
parent c29d2fde74
commit 72f293aa50
No known key found for this signature in database
GPG key ID: D5C458DF6DD97EDF
2 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,30 @@
{ lib, buildPythonPackage, isPy3k, fetchFromGitHub, requests
, requests-mock, pytest
}:
buildPythonPackage rec {
pname = "pyairvisual";
version = "1.0.0";
src = fetchFromGitHub {
owner = "bachya";
repo = pname;
rev = "v${version}";
sha256 = "0ng6k07n91k5l68zk3hl4fywb33admp84wqdm20qmmw9yc9c64fd";
};
checkInputs = [ pytest requests-mock ];
propagatedBuildInputs = [ requests ];
checkPhase = ''
py.test tests
'';
disabled = !isPy3k;
meta = with lib; {
description = "A thin Python wrapper for the AirVisual API";
license = licenses.mit;
homepage = https://github.com/bachya/pyairvisual;
};
}

View file

@ -319,6 +319,8 @@ in {
pyaes = callPackage ../development/python-modules/pyaes { };
pyairvisual = callPackage ../development/python-modules/pyairvisual { };
pyamf = callPackage ../development/python-modules/pyamf { };
pyarrow = callPackage ../development/python-modules/pyarrow {