diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-10-10 22:34:14 +0200 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-10-10 22:34:14 +0200 |
commit | d1b2e3b0e8ec8fdd4de5d6e4778d5df27b939b7b (patch) | |
tree | 0c614b8e0e8fe2fd2604c186db1d19035db35757 /pkgs/development/python-modules/crownstone-cloud | |
parent | ca2ece2bd4bfc8190f14ecbc92cfa50e0ac50336 (diff) |
python3Packages.crownstone-cloud: init at 1.4.5
Diffstat (limited to 'pkgs/development/python-modules/crownstone-cloud')
-rw-r--r-- | pkgs/development/python-modules/crownstone-cloud/default.nix | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/crownstone-cloud/default.nix b/pkgs/development/python-modules/crownstone-cloud/default.nix new file mode 100644 index 0000000000000..94e6219264c06 --- /dev/null +++ b/pkgs/development/python-modules/crownstone-cloud/default.nix @@ -0,0 +1,50 @@ +{ lib +, aiohttp +, asynctest +, buildPythonPackage +, fetchFromGitHub +, certifi +, pythonOlder +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "crownstone-cloud"; + version = "1.4.5"; + format = "setuptools"; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "crownstone"; + repo = "crownstone-lib-python-cloud"; + rev = "v${version}"; + sha256 = "1a8bkqkrc7iyggr5rr20qdqg67sycdx2d94dd1ylkmr7627r34ys"; + }; + + propagatedBuildInputs = [ + aiohttp + asynctest + certifi + ]; + + checkInputs = [ + pytestCheckHook + ]; + + postPatch = '' + substituteInPlace requirements.txt \ + --replace "codecov>=2.1.10" "" + ''; + + pythonImportsCheck = [ + "crownstone_cloud" + ]; + + meta = with lib; { + description = "Python module for communicating with Crownstone Cloud and devices"; + homepage = "https://github.com/crownstone/crownstone-lib-python-cloud"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} |