From 3d5ea9e2fa3de5cfa63c34dd218a777ff747fc79 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 2 Jan 2021 15:13:19 +0100 Subject: [PATCH] python3Packages.pyi2cflash: init at 0.2.2 --- .../python-modules/pyi2cflash/default.nix | 31 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/development/python-modules/pyi2cflash/default.nix diff --git a/pkgs/development/python-modules/pyi2cflash/default.nix b/pkgs/development/python-modules/pyi2cflash/default.nix new file mode 100644 index 000000000000..7ac3aa5af08e --- /dev/null +++ b/pkgs/development/python-modules/pyi2cflash/default.nix @@ -0,0 +1,31 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pyftdi +}: + +buildPythonPackage rec { + pname = "pyi2cflash"; + version = "0.2.2"; + + src = fetchPypi { + inherit pname version; + sha256 = "1nkazgf7pajz7jym5rfy2df71lyfp4skxqbrg5ch0h4dwjdwllx1"; + }; + + propagatedBuildInputs = [ + pyftdi + ]; + + # tests are not shipped with the PyPI source + doCheck = false; + + pythonImportsCheck = [ "i2cflash" ]; + + meta = with lib; { + description = "I2C eeprom device drivers in Python"; + homepage = "https://github.com/eblot/pyi2cflash"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a53b50146fec..d504d3f846be 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5273,6 +5273,8 @@ in { pyhs100 = callPackage ../development/python-modules/pyhs100 { }; + pyi2cflash = callPackage ../development/python-modules/pyi2cflash { }; + pyicloud = callPackage ../development/python-modules/pyicloud { }; PyICU = callPackage ../development/python-modules/pyicu { };