mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-19 22:30:23 +00:00
python3Packages.thingspeak: init at 1.0.0
This commit is contained in:
64
pkgs/development/python-modules/thingspeak/default.nix
Normal file
64
pkgs/development/python-modules/thingspeak/default.nix
Normal file
@@ -0,0 +1,64 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
docopt,
|
||||
fetchFromGitHub,
|
||||
poetry-core,
|
||||
pytest-vcr,
|
||||
pytestCheckHook,
|
||||
requests,
|
||||
setuptools,
|
||||
vcrpy,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "thingspeak";
|
||||
version = "1.0.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mchwalisz";
|
||||
repo = "thingspeak";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-9YvudzksWp130hkG8WxiX9WHegAVH2TT1vwMbLJ13qE=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail "poetry.masonry.api" "poetry.core.masonry.api" \
|
||||
--replace-fail 'requires = ["poetry>=0.12"]' 'requires = ["poetry-core"]'
|
||||
'';
|
||||
|
||||
build-system = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
docopt
|
||||
requests
|
||||
setuptools
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest-vcr
|
||||
pytestCheckHook
|
||||
vcrpy
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# VCR cassette conflicts with different API keys
|
||||
"test_get_with_key"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"thingspeak"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Client library for the thingspeak.com API";
|
||||
homepage = "https://github.com/mchwalisz/thingspeak";
|
||||
changelog = "https://github.com/mchwalisz/thingspeak/releases/tag/v${version}";
|
||||
license = lib.licenses.lgpl3Only;
|
||||
maintainers = [ lib.maintainers.jamiemagee ];
|
||||
};
|
||||
}
|
||||
@@ -17981,6 +17981,8 @@ self: super: with self; {
|
||||
|
||||
thinc = callPackage ../development/python-modules/thinc { };
|
||||
|
||||
thingspeak = callPackage ../development/python-modules/thingspeak { };
|
||||
|
||||
thinqconnect = callPackage ../development/python-modules/thinqconnect { };
|
||||
|
||||
thorlabspm100 = callPackage ../development/python-modules/thorlabspm100 { };
|
||||
|
||||
Reference in New Issue
Block a user