From b67006fae1e12e9bd3ae43259ef575a434ff8fd9 Mon Sep 17 00:00:00 2001 From: Jeff Labonte Date: Mon, 10 Feb 2020 21:53:02 -0500 Subject: [PATCH] pythonPackages.digi-xbee: init at 1.3.0 --- .../python-modules/digi-xbee/default.nix | 24 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 -- 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 pkgs/development/python-modules/digi-xbee/default.nix diff --git a/pkgs/development/python-modules/digi-xbee/default.nix b/pkgs/development/python-modules/digi-xbee/default.nix new file mode 100644 index 000000000000..32d8c47a9801 --- /dev/null +++ b/pkgs/development/python-modules/digi-xbee/default.nix @@ -0,0 +1,24 @@ +{ stdenv, buildPythonPackage, fetchPypi, isPy27, pyserial, srp, lib }: + +buildPythonPackage rec { + pname = "digi-xbee"; + version = "1.3.0"; + disabled = isPy27; + + src = fetchPypi { + inherit pname version; + sha256 = "2ed798faee0853bf7ae9ca5aa4bdcbab496e3c2d56c9f0719a8e3e0d13270891"; + }; + + propagatedBuildInputs = [ pyserial srp ]; + + # Upstream doesn't contain unit tests, only functional tests which require specific hardware + doCheck = false; + + meta = with stdenv.lib; { + description = "Python library to interact with Digi International's XBee radio frequency modules"; + homepage = "https://github.com/digidotcom/xbee-python"; + license = licenses.mpl20; + maintainers = with maintainers; [ jefflabonte ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e8e89da75cb9..27fb41d2c4bf 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6950,8 +6950,6 @@ in { importlib-resources = callPackage ../development/python-modules/importlib-resources {}; - srp = callPackage ../development/python-modules/srp { }; - srptools = callPackage ../development/python-modules/srptools { }; srp = callPackage ../development/python-modules/srp { };