Files
nixpkgs/pkgs/development/python-modules/construct/default.nix
T

33 lines
771 B
Nix
Raw Normal View History

2018-09-12 03:18:37 +02:00
{ stdenv, buildPythonPackage, fetchFromGitHub
, six, pytest, arrow
}:
buildPythonPackage rec {
2018-09-12 03:18:37 +02:00
pname = "construct";
version = "2.9.45";
src = fetchFromGitHub {
2018-09-12 03:18:37 +02:00
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "0ig66xrzswpkhhmw123p2nvr15a9lxz54a1fmycfdh09327c1d3y";
};
propagatedBuildInputs = [ six ];
2018-09-12 03:18:37 +02:00
checkInputs = [ pytest arrow ];
2018-03-10 23:36:00 +01:00
2018-09-12 03:18:37 +02:00
# TODO: figure out missing dependencies
doCheck = false;
2018-03-10 23:36:00 +01:00
checkPhase = ''
2018-09-12 03:18:37 +02:00
py.test -k 'not test_numpy and not test_gallery' tests
2018-03-10 23:36:00 +01:00
'';
meta = with stdenv.lib; {
description = "Powerful declarative parser (and builder) for binary data";
homepage = http://construct.readthedocs.org/;
license = licenses.mit;
maintainers = with maintainers; [ bjornfor ];
};
}