python3.pkgs.bitlist: audit and update dependencies
This commit is contained in:
parent
dcead249cc
commit
be98d462a1
1 changed files with 17 additions and 7 deletions
|
@ -1,8 +1,9 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, fetchpatch
|
||||
, setuptools
|
||||
, nose
|
||||
, wheel
|
||||
, parts
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
|
@ -20,8 +21,23 @@ buildPythonPackage rec {
|
|||
hash = "sha256-eViakuhgSe9E8ltxzeg8m6/ze7QQvoKBtYZoBZzHxlA=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# https://github.com/lapets/bitlist/pull/1
|
||||
(fetchpatch {
|
||||
name = "unpin-setuptools-dependency.patch";
|
||||
url = "https://github.com/lapets/bitlist/commit/d1f977a9e835852df358b2d93b642a6820619c10.patch";
|
||||
hash = "sha256-BBa6gdhuYsWahtp+Qdp/RigmVHK+uWyK46M1CdD8O2g=";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace '--cov=bitlist --cov-report term-missing' ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
wheel
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
@ -30,18 +46,12 @@ buildPythonPackage rec {
|
|||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
nose
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"bitlist"
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace "--doctest-modules --ignore=docs --cov=bitlist --cov-report term-missing" ""
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python library for working with little-endian list representation of bit strings";
|
||||
homepage = "https://github.com/lapets/bitlist";
|
||||
|
|
Loading…
Reference in a new issue