From 5399f73b2010293d3ab84cabdab894023152e844 Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Thu, 12 Nov 2020 18:07:40 +0100 Subject: [PATCH] add txzmq python pkg --- pkgs/python-packages/default.nix | 1 + pkgs/python-packages/txzmq/default.nix | 28 ++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/python-packages/txzmq/default.nix diff --git a/pkgs/python-packages/default.nix b/pkgs/python-packages/default.nix index 7077330..8e953ba 100644 --- a/pkgs/python-packages/default.nix +++ b/pkgs/python-packages/default.nix @@ -12,6 +12,7 @@ in { secp256k1 = callPackage ./secp256k1 {}; urldecode = callPackage ./urldecode {}; chromalog = callPackage ./chromalog {}; + txzmq = callPackage ./txzmq {}; joinmarketbase = joinmarketPkg ./jmbase; joinmarketclient = joinmarketPkg ./jmclient; diff --git a/pkgs/python-packages/txzmq/default.nix b/pkgs/python-packages/txzmq/default.nix new file mode 100644 index 0000000..fc2ee11 --- /dev/null +++ b/pkgs/python-packages/txzmq/default.nix @@ -0,0 +1,28 @@ +{ lib +, buildPythonPackage +, fetchPypi +, twisted +, pyzmq +}: + +buildPythonPackage rec { + pname = "txzmq"; + version = "0.8.2"; + + src = fetchPypi { + pname = "txZMQ"; + inherit version; + sha256 = "07a9a480e58d4d732eef9efd7e264f2348cbf27ee82b338ec818a8504006e1c0"; + }; + + propagatedBuildInputs = [ + twisted + pyzmq + ]; + + meta = with lib; { + description = "Twisted bindings for ZeroMQ"; + homepage = https://github.com/smira/txZMQ; + license = licenses.gpl2; + }; +}