1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/python-lz4/default.nix

42 lines
931 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, future
, isPy3k
, pkgconfig
, psutil
, pytest
, pytestcov
, pytestrunner
, setuptools_scm
}:
buildPythonPackage rec {
pname = "python-lz4";
2019-08-18 10:06:23 +01:00
version = "2.1.10";
# get full repository inorder to run tests
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
2019-08-18 10:06:23 +01:00
sha256 = "02cadqfdmw4vc94px18dh4hcybpsa2lr6jz6j5phwc0jjaavh3wr";
};
buildInputs = [ setuptools_scm pkgconfig pytestrunner ];
checkInputs = [ pytest pytestcov 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;
2018-12-06 02:25:22 +00:00
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ costrouc ];
};
}