diff options
| author | nixpkgs-ci[bot] <190413589+nixpkgs-ci[bot]@users.noreply.github.com> | 2025-08-11 00:24:16 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-11 00:24:16 +0000 |
| commit | ef3238a84cc5d5b60de2aec6ecc7d434c8da1b5c (patch) | |
| tree | 5605011b7d6dad28bac39254aa1488cadddac7c3 /pkgs/development/python-modules/thingspeak/default.nix | |
| parent | haskellPackages.cabal2nix-unstable: 2025-06-14 -> 2025-08-10 (diff) | |
| parent | balena-cli: 22.1.5 -> 22.2.4 (#432566) (diff) | |
| download | nixpkgs-origin/haskell-updates.tar.gz | |
Merge b1b0d690fbb0e4a2fa029ab625a3b1646487fee1 into haskell-updatesorigin/haskell-updates
Diffstat (limited to 'pkgs/development/python-modules/thingspeak/default.nix')
| -rw-r--r-- | pkgs/development/python-modules/thingspeak/default.nix | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/thingspeak/default.nix b/pkgs/development/python-modules/thingspeak/default.nix new file mode 100644 index 000000000000..ba904072e290 --- /dev/null +++ b/pkgs/development/python-modules/thingspeak/default.nix @@ -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 ]; + }; +} |
