diff options
| author | Robert Schütz <dev@schuetz-co.de> | 2021-06-18 17:59:04 +0200 |
|---|---|---|
| committer | Robert Schütz <dev@schuetz-co.de> | 2021-06-18 18:08:20 +0200 |
| commit | 215c16d88e620b997c482b05d610fe0f4e3371e3 (patch) | |
| tree | b87e68609556429f009e33e176329b11c2971aaf /pkgs/development/python-modules/enocean | |
| parent | Merge pull request #127309 from jakobrs/nixos-normalise-null (diff) | |
| download | nixpkgs-215c16d88e620b997c482b05d610fe0f4e3371e3.tar.gz | |
python3Packages.enocean: init at 0.60.1
Diffstat (limited to 'pkgs/development/python-modules/enocean')
| -rw-r--r-- | pkgs/development/python-modules/enocean/default.nix | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/enocean/default.nix b/pkgs/development/python-modules/enocean/default.nix new file mode 100644 index 000000000000..365d6c94ef28 --- /dev/null +++ b/pkgs/development/python-modules/enocean/default.nix @@ -0,0 +1,51 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, beautifulsoup4 +, enum-compat +, pyserial +, nose +}: + +buildPythonPackage rec { + pname = "enocean"; + version = "0.60.1"; + + src = fetchFromGitHub { + owner = "kipe"; + repo = "enocean"; + rev = version; + sha256 = "0cbcvvy3qaqv8925z608qmkc1l914crzw79krwrz2vpm2fyribab"; + }; + + propagatedBuildInputs = [ + beautifulsoup4 + enum-compat + pyserial + ]; + + checkInputs = [ + nose + ]; + + checkPhase = '' + runHook preCheck + + nosetests + + runHook postCheck + ''; + + pythonImportsCheck = [ + "enocean.communicators" + "enocean.protocol.packet" + "enocean.utils" + ]; + + meta = with lib; { + description = "EnOcean serial protocol implementation"; + homepage = "https://github.com/kipe/enocean"; + license = licenses.mit; + maintainers = with maintainers; [ dotlambda ]; + }; +} |
