python3.pkgs.bitlist: audit and update dependencies

This commit is contained in:
Theodore Ni 2023-08-05 23:32:36 -07:00
parent dcead249cc
commit be98d462a1
No known key found for this signature in database
GPG Key ID: 48B67583BDDD4474

View File

@ -1,8 +1,9 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, fetchpatch
, setuptools , setuptools
, nose , wheel
, parts , parts
, pytestCheckHook , pytestCheckHook
, pythonOlder , pythonOlder
@ -20,8 +21,23 @@ buildPythonPackage rec {
hash = "sha256-eViakuhgSe9E8ltxzeg8m6/ze7QQvoKBtYZoBZzHxlA="; 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 = [ nativeBuildInputs = [
setuptools setuptools
wheel
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -30,18 +46,12 @@ buildPythonPackage rec {
nativeCheckInputs = [ nativeCheckInputs = [
pytestCheckHook pytestCheckHook
nose
]; ];
pythonImportsCheck = [ pythonImportsCheck = [
"bitlist" "bitlist"
]; ];
postPatch = ''
substituteInPlace pyproject.toml \
--replace "--doctest-modules --ignore=docs --cov=bitlist --cov-report term-missing" ""
'';
meta = with lib; { meta = with lib; {
description = "Python library for working with little-endian list representation of bit strings"; description = "Python library for working with little-endian list representation of bit strings";
homepage = "https://github.com/lapets/bitlist"; homepage = "https://github.com/lapets/bitlist";