about summary refs log tree commit diff
path: root/pkgs/development/python-modules/construct/default.nix
blob: 680f6e02cd01bffd6ebeadff91158018fbdbd5e3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ stdenv, buildPythonPackage, fetchFromGitHub, six, pytest }:

buildPythonPackage rec {
  pname = "construct";
  version = "2.8.16";
  name = pname + "-" + version;

  src = fetchFromGitHub {
    owner = "construct";
    repo = "construct";
    rev = "v${version}";
    sha256 = "0lzz1dy419n254qccch7yx4nkpwd0fsyjhnsnaf6ysgwzqxxv63j";
  };

  propagatedBuildInputs = [ six ];

  checkInputs = [ pytest ];

  checkPhase = ''
    py.test -k 'not test_numpy' tests
  '';

  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 ];
  };
}