From 89c433fbf1847df041aa5c1e18db53648836ac66 Mon Sep 17 00:00:00 2001 From: geistesk Date: Fri, 4 Jan 2019 13:51:51 +0100 Subject: [PATCH] cbor: init at 1.0.0 --- .../python-modules/cbor/default.nix | 22 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 pkgs/development/python-modules/cbor/default.nix diff --git a/pkgs/development/python-modules/cbor/default.nix b/pkgs/development/python-modules/cbor/default.nix new file mode 100644 index 000000000000..360872c0f896 --- /dev/null +++ b/pkgs/development/python-modules/cbor/default.nix @@ -0,0 +1,22 @@ +{ stdenv, buildPythonPackage, fetchPypi }: + +buildPythonPackage rec { + pname = "cbor"; + version = "1.0.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "1dmv163cnslyqccrybkxn0c9s1jk1mmafmgxv75iamnz5lk5l8hk"; + }; + + # Tests are excluded from PyPI and four unit tests are also broken: + # https://github.com/brianolson/cbor_py/issues/6 + doCheck = false; + + meta = with stdenv.lib; { + homepage = https://bitbucket.org/bodhisnarkva/cbor; + description = "Concise Binary Object Representation (CBOR) library"; + license = licenses.asl20; + maintainers = with maintainers; [ geistesk ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f00e2b4cb0fa..36bd7904ff19 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1170,6 +1170,8 @@ in { case = callPackage ../development/python-modules/case {}; + cbor = callPackage ../development/python-modules/cbor {}; + cassandra-driver = callPackage ../development/python-modules/cassandra-driver { }; cccolutils = callPackage ../development/python-modules/cccolutils {};