Unverified Commit 4d590fb4 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #247460 from tjni/bitlist

python3.pkgs.bitlist: audit and update dependencies
parents 4d0cb68e be98d462
Loading
Loading
Loading
Loading
+17 −7
Original line number Diff line number Diff line
{ 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";