diff options
author | Bjørn Forsman <bjorn.forsman@gmail.com> | 2017-10-29 14:32:12 +0100 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2017-10-29 22:35:15 +0100 |
commit | 0bc9f75dc16442abab86abcbab67dfe885378f95 (patch) | |
tree | 5fed7092c8ff1cc684cd0f22a8dd51907b8f80f3 /pkgs/development/python-modules/construct | |
parent | 4c0582d47dbed105ca9c7507a4f365a7ae0e8b5e (diff) | |
download | nixlib-0bc9f75dc16442abab86abcbab67dfe885378f95.tar nixlib-0bc9f75dc16442abab86abcbab67dfe885378f95.tar.gz nixlib-0bc9f75dc16442abab86abcbab67dfe885378f95.tar.bz2 nixlib-0bc9f75dc16442abab86abcbab67dfe885378f95.tar.lz nixlib-0bc9f75dc16442abab86abcbab67dfe885378f95.tar.xz nixlib-0bc9f75dc16442abab86abcbab67dfe885378f95.tar.zst nixlib-0bc9f75dc16442abab86abcbab67dfe885378f95.zip |
pythonPackages.construct: move to python-modules/
Diffstat (limited to 'pkgs/development/python-modules/construct')
-rw-r--r-- | pkgs/development/python-modules/construct/default.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/construct/default.nix b/pkgs/development/python-modules/construct/default.nix new file mode 100644 index 000000000000..1845d7ec94f7 --- /dev/null +++ b/pkgs/development/python-modules/construct/default.nix @@ -0,0 +1,27 @@ +{ stdenv, buildPythonPackage, fetchFromGitHub, six, pythonOlder }: + +buildPythonPackage rec { + name = "construct-${version}"; + version = "2.8.10"; + + src = fetchFromGitHub { + owner = "construct"; + repo = "construct"; + rev = "v${version}"; + sha256 = "1xfmmc5pihn3ql9f7blrciy06y2bwczqvkbcpvh96dmgqwc3wys3"; + }; + + propagatedBuildInputs = [ six ]; + + # Tests fail with the following error on Python 3.5+ + # TypeError: not all arguments converted during string formatting + doCheck = pythonOlder "3.5"; + + meta = with stdenv.lib; { + description = "Powerful declarative parser (and builder) for binary data"; + homepage = http://construct.readthedocs.org/; + license = licenses.mit; + platforms = platforms.linux; + maintainers = with maintainers; [ bjornfor ]; + }; +} |