summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pycayennelpp/default.nix
blob: e16c16e280b1183e17106c34d53bf65941c3afec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
  lib,
  buildPythonPackage,
  fetchPypi,
  setuptools,
}:

buildPythonPackage rec {
  pname = "pycayennelpp";
  version = "2.4.0";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    sha256 = "1cc6lz28aa57gs74767xyd3i370lwx046yb5a1nfch6fk3kf7xdx";
  };

  build-system = [ setuptools ];

  # Patch setup.py to remove pytest-runner
  postPatch = ''
    substituteInPlace setup.py \
      --replace '"pytest-runner"' ""
  '';

  doCheck = false;

  meta = {
    description = "Python library for Cayenne Low Power Payload";
    homepage = "https://github.com/smlng/pycayennelpp";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.haylin ];
  };
}