1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools,
6}:
7
8buildPythonPackage rec {
9 pname = "pycayennelpp";
10 version = "2.4.0";
11 pyproject = true;
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "1cc6lz28aa57gs74767xyd3i370lwx046yb5a1nfch6fk3kf7xdx";
16 };
17
18 build-system = [ setuptools ];
19
20 # Patch setup.py to remove pytest-runner
21 postPatch = ''
22 substituteInPlace setup.py \
23 --replace '"pytest-runner"' ""
24 '';
25
26 doCheck = false;
27
28 meta = with lib; {
29 description = "Python library for Cayenne Low Power Payload";
30 homepage = "https://github.com/smlng/pycayennelpp";
31 license = licenses.mit;
32 maintainers = [ lib.maintainers.haylin ];
33 };
34}