From ef307af08ec1d13692dfefd7616bba878bb67301 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 19 Sep 2021 16:50:39 +0200 Subject: [PATCH] python3Packages.thriftpy2: init at 0.4.14 --- .../python-modules/thriftpy2/default.nix | 45 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 47 insertions(+) create mode 100644 pkgs/development/python-modules/thriftpy2/default.nix diff --git a/pkgs/development/python-modules/thriftpy2/default.nix b/pkgs/development/python-modules/thriftpy2/default.nix new file mode 100644 index 000000000000..0d5f5afe4a5c --- /dev/null +++ b/pkgs/development/python-modules/thriftpy2/default.nix @@ -0,0 +1,45 @@ +{ lib +, buildPythonPackage +, cython +, fetchFromGitHub +, pythonOlder +, ply +, six +, tornado +}: + +buildPythonPackage rec { + pname = "thriftpy2"; + version = "0.4.14"; + + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "Thriftpy"; + repo = pname; + rev = "v${version}"; + sha256 = "17f57vsbym4c9yax128bhrwg2zjxcsgl3ja6422y8hyb38v5mdc3"; + }; + + nativeBuildInputs = [ + cython + ]; + + propagatedBuildInputs = [ + ply + six + tornado + ]; + + # Not all needed files seems to be present + doCheck = false; + + pythonImportsCheck = [ "thriftpy2" ]; + + meta = with lib; { + description = "Python module for Apache Thrift"; + homepage = "https://github.com/Thriftpy/thriftpy2"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 8c005de4611b..19352cde22dc 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8897,6 +8897,8 @@ in { thrift = callPackage ../development/python-modules/thrift { }; + thriftpy2 = callPackage ../development/python-modules/thriftpy2 { }; + thumborPexif = callPackage ../development/python-modules/thumborpexif { }; tkinter = let