mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
93601ff826
Diff: https://github.com/Thriftpy/thriftpy2/compare/refs/tags/v0.4.15...v0.4.16 Changelog: https://github.com/Thriftpy/thriftpy2/blob/v0.4.16/CHANGES.rst
50 lines
909 B
Nix
50 lines
909 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, cython
|
|
, fetchFromGitHub
|
|
, ply
|
|
, pythonOlder
|
|
, six
|
|
, tornado
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "thriftpy2";
|
|
version = "0.4.16";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Thriftpy";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-o+h38NREnh14M23gyF2X2UdW7/spmHFo0rqvkKnmSRQ=";
|
|
};
|
|
|
|
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";
|
|
changelog = "https://github.com/Thriftpy/thriftpy2/blob/v${version}/CHANGES.rst";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|