summaryrefslogtreecommitdiffstats
path: root/pkgs/development/python-modules/cbor/default.nix
blob: 3f9052f2139b4bfc76f4dc253aab89de58d2498a (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
{
  lib,
  buildPythonPackage,
  fetchPypi,
  setuptools,
}:

buildPythonPackage (finalAttrs: {
  pname = "cbor";
  version = "1.0.0";
  pyproject = true;

  src = fetchPypi {
    inherit (finalAttrs) pname version;
    sha256 = "1dmv163cnslyqccrybkxn0c9s1jk1mmafmgxv75iamnz5lk5l8hk";
  };

  build-system = [ setuptools ];

  # Tests are excluded from PyPI and four unit tests are also broken:
  # https://github.com/brianolson/cbor_py/issues/6
  doCheck = false;

  meta = {
    homepage = "https://github.com/brianolson/cbor_py";
    description = "Concise Binary Object Representation (CBOR) library";
    license = lib.licenses.asl20;
    maintainers = [ ];
  };
})