summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/py-ubjson/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/py-ubjson/default.nix')
-rw-r--r--pkgs/development/python-modules/py-ubjson/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/py-ubjson/default.nix b/pkgs/development/python-modules/py-ubjson/default.nix
new file mode 100644
index 000000000000..4efa2b8b6fdb
--- /dev/null
+++ b/pkgs/development/python-modules/py-ubjson/default.nix
@@ -0,0 +1,32 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, pytestCheckHook
+}:
+
+buildPythonPackage rec {
+ pname = "py-ubjson";
+ version = "0.16.1";
+
+ src = fetchFromGitHub {
+ owner = "Iotic-Labs";
+ repo = pname;
+ rev = "v${version}";
+ sha256 = "1frn97xfa88zrfmpnvdk1pc03yihlchhph99bhjayvzlfcrhm5v3";
+ };
+
+ checkInputs = [
+ pytestCheckHook
+ ];
+
+ pytestFlagsArray = [ "test/test.py" ];
+
+ pythonImportsCheck = [ "ubjson" ];
+
+ meta = with lib; {
+ description = "Universal Binary JSON draft-12 serializer for Python";
+ homepage = "https://github.com/Iotic-Labs/py-ubjson";
+ license = with licenses; [ asl20 ];
+ maintainers = with maintainers; [ fab ];
+ };
+}