3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/construct/default.nix
Josef Kemetmüller 91a9453496 pythonPackages.construct: Fix darwin build
The package runs fine on darwin. Using pytest as a test runner also
resolves the checkPhase issue on Python 3.5+.
2018-03-10 23:36:00 +01:00

30 lines
724 B
Nix

{ stdenv, buildPythonPackage, fetchFromGitHub, six, pytest, pythonOlder }:
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 ];
};
}