mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-11 15:08:33 +01:00
pythonPackages.python-lz4: init at 2.1.0
Fetching from github repository instead of pypi so that all tests can be run. - compatible with 2.7, 3+ - all tests pass
This commit is contained in:
parent
5704642a3f
commit
3a56e314b8
40
pkgs/development/python-modules/python-lz4/default.nix
Normal file
40
pkgs/development/python-modules/python-lz4/default.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytestrunner
|
||||
, pytest
|
||||
, psutil
|
||||
, setuptools_scm
|
||||
, pkgconfig
|
||||
, isPy3k
|
||||
, future
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-lz4";
|
||||
version = "2.1.0";
|
||||
|
||||
# get full repository inorder to run tests
|
||||
src = fetchFromGitHub {
|
||||
owner = pname;
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1vjfplj37jcw1mf8l810dv76dx0raia3ylgyfy7sfsb3g17brjq6";
|
||||
};
|
||||
|
||||
buildInputs = [ setuptools_scm pkgconfig pytestrunner ];
|
||||
checkInputs = [ pytest psutil ];
|
||||
propagatedBuildInputs = lib.optionals (!isPy3k) [ future ];
|
||||
|
||||
# give a hint to setuptools_scm on package version
|
||||
preBuild = ''
|
||||
export SETUPTOOLS_SCM_PRETEND_VERSION="v${version}"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "LZ4 Bindings for Python";
|
||||
homepage = https://github.com/python-lz4/python-lz4;
|
||||
license = lib.licenses.bsd0;
|
||||
maintainers = with lib.maintainers; [ costrouc ];
|
||||
};
|
||||
}
|
|
@ -461,6 +461,8 @@ in {
|
|||
|
||||
python-hosts = callPackage ../development/python-modules/python-hosts { };
|
||||
|
||||
python-lz4 = callPackage ../development/python-modules/python-lz4 { };
|
||||
|
||||
python3-openid = callPackage ../development/python-modules/python3-openid { };
|
||||
|
||||
python-periphery = callPackage ../development/python-modules/python-periphery { };
|
||||
|
|
Loading…
Reference in a new issue