02dab4ab5c
Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
32 lines
644 B
Nix
32 lines
644 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pyftdi
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyi2cflash";
|
|
version = "0.2.2";
|
|
format = "setuptools";
|
|
|
|
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 ];
|
|
};
|
|
}
|