mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 14:11:36 +00:00
python.pkgs.construct: 2.9.45 -> 2.10.56 (#95189)
* python.pkgs.construct: 2.9.45 -> 2.10.56 * python.pkgs.pykeepass: fix dependencies
This commit is contained in:
commit
72b5ca9765
|
@ -1,27 +1,24 @@
|
|||
{ stdenv, buildPythonPackage, fetchFromGitHub
|
||||
, six, pytest, arrow
|
||||
{ stdenv, buildPythonPackage, fetchFromGitHub, pythonOlder
|
||||
, six, pytestCheckHook, pytest-benchmark, numpy, arrow, ruamel_yaml
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "construct";
|
||||
version = "2.9.45";
|
||||
version = "2.10.56";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
# no tests in PyPI tarball
|
||||
src = fetchFromGitHub {
|
||||
owner = pname;
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0ig66xrzswpkhhmw123p2nvr15a9lxz54a1fmycfdh09327c1d3y";
|
||||
sha256 = "1j4mqwyxkbdcsnnk5bbdcljv855w4fglaqc94q1xdzm8kgjxk4mr";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ six ];
|
||||
checkInputs = [ pytestCheckHook pytest-benchmark numpy arrow ruamel_yaml ];
|
||||
|
||||
checkInputs = [ pytest arrow ];
|
||||
|
||||
# TODO: figure out missing dependencies
|
||||
doCheck = false;
|
||||
checkPhase = ''
|
||||
py.test -k 'not test_numpy and not test_gallery' tests
|
||||
'';
|
||||
pytestFlagsArray = [ "--benchmark-disable" ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Powerful declarative parser (and builder) for binary data";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{ lib, fetchPypi, buildPythonPackage
|
||||
, lxml, pycryptodome, construct
|
||||
, lxml, pycryptodomex, construct
|
||||
, argon2_cffi, dateutil, future
|
||||
}:
|
||||
|
||||
|
@ -12,8 +12,12 @@ buildPythonPackage rec {
|
|||
sha256 = "b3e07eb2dd3aeb1dfa1a2d2d17be77066ee560c1e770f1c72d7ea5608117d284";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py --replace "==" ">="
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
lxml pycryptodome construct
|
||||
lxml pycryptodomex construct
|
||||
argon2_cffi dateutil future
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in a new issue