mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-06 04:53:27 +00:00
5f4a014824
Diff: https://github.com/Thriftpy/thriftpy2/compare/refs/tags/v0.5.1...v0.5.2 Changelog: https://github.com/Thriftpy/thriftpy2/blob/v0.5.2/CHANGES.rst
50 lines
946 B
Nix
50 lines
946 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
cython,
|
|
fetchFromGitHub,
|
|
ply,
|
|
pythonOlder,
|
|
six,
|
|
setuptools,
|
|
tornado,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "thriftpy2";
|
|
version = "0.5.2";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Thriftpy";
|
|
repo = "thriftpy2";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-GBJL+IqZpT1/msJLiwiS5YDyB4hIe/e3pYPWx0A+lWY=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
nativeBuildInputs = [ cython ];
|
|
|
|
dependencies = [
|
|
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 ];
|
|
};
|
|
}
|