diff options
author | Chris Ostrouchov <chris.ostrouchov@gmail.com> | 2018-08-08 15:27:47 -0400 |
---|---|---|
committer | Chris Ostrouchov <chris.ostrouchov@gmail.com> | 2018-09-05 23:46:28 -0400 |
commit | 3a56e314b85a7bec2d19fb156713562e5ae3a7b1 (patch) | |
tree | c322dab8a7b5a25499a3cd9a0ea74f65e51ae0ff /pkgs/development/python-modules/python-lz4 | |
parent | 5704642a3f8dd29ef6e280de69171186ca327b6a (diff) | |
download | nixpkgs-3a56e314b85a7bec2d19fb156713562e5ae3a7b1.tar nixpkgs-3a56e314b85a7bec2d19fb156713562e5ae3a7b1.tar.gz nixpkgs-3a56e314b85a7bec2d19fb156713562e5ae3a7b1.tar.bz2 nixpkgs-3a56e314b85a7bec2d19fb156713562e5ae3a7b1.tar.lz nixpkgs-3a56e314b85a7bec2d19fb156713562e5ae3a7b1.tar.xz nixpkgs-3a56e314b85a7bec2d19fb156713562e5ae3a7b1.tar.zst nixpkgs-3a56e314b85a7bec2d19fb156713562e5ae3a7b1.zip |
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
Diffstat (limited to 'pkgs/development/python-modules/python-lz4')
-rw-r--r-- | pkgs/development/python-modules/python-lz4/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/python-lz4/default.nix b/pkgs/development/python-modules/python-lz4/default.nix new file mode 100644 index 00000000000..a0fe6666d84 --- /dev/null +++ b/pkgs/development/python-modules/python-lz4/default.nix @@ -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 ]; + }; +} |