Unverified Commit 4d7ed493 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

Merge pull request #285868 from Stunkymonkey/flufl

parents a3047b38 4eea3ae9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@
, dvc-task
, fetchFromGitHub
, flatten-dict
, flufl_lock
, flufl-lock
, funcy
, grandalf
, gto
@@ -98,7 +98,7 @@ buildPythonPackage rec {
    dvc-studio-client
    dvc-task
    flatten-dict
    flufl_lock
    flufl-lock
    funcy
    grandalf
    gto
+41 −6
Original line number Diff line number Diff line
{ buildPythonPackage, fetchPypi, atpublic, zope-interface, nose2 }:
{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, atpublic
, zope-interface
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "flufl.bounce";
  pname = "flufl-bounce";
  version = "4.0";

  buildInputs = [ nose2 ];
  propagatedBuildInputs = [ atpublic zope-interface ];
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    pname = "flufl.bounce";
    inherit version;
    hash = "sha256-JVBK65duwP5aGc1sQTo0EMtRT9zb3Kn5tdjTQ6hgODE=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  propagatedBuildInputs = [
    atpublic
    zope-interface
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "flufl.bounce"
  ];

  pythonNamespaces = [
    "flufl"
  ];

  meta = with lib; {
    description = "Email bounce detectors";
    homepage = "https://gitlab.com/warsaw/flufl.bounce";
    changelog = "https://gitlab.com/warsaw/flufl.bounce/-/blob/${version}/flufl/bounce/NEWS.rst";
    maintainers = with maintainers; [ ];
    license = licenses.asl20;
  };
}
+27 −8
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, atpublic
, pdm-pep517
, pytestCheckHook
, sybil
}:

buildPythonPackage rec {
  pname = "flufl.i18n";
  pname = "flufl-i18n";
  version = "4.1.1";
  format = "pyproject";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    pname = "flufl.i18n";
    inherit version;
    hash = "sha256-wKz6aggkJ9YBJ+o75XjC4Ddnn+Zi9hlYDnliwTc7DNs=";
  };

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace "--cov=flufl --cov-report=term --cov-report=xml" ""
  '';

  nativeBuildInputs = [ pdm-pep517 ];
  propagatedBuildInputs = [ atpublic ];

  doCheck = false;
  propagatedBuildInputs = [ atpublic ];

  pythonImportsCheck = [ "flufl.i18n" ];

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-wKz6aggkJ9YBJ+o75XjC4Ddnn+Zi9hlYDnliwTc7DNs=";
  };
  nativeCheckInputs = [
    pytestCheckHook
    sybil
  ];

  pythonNamespaces = [
    "flufl"
  ];

  meta = with lib; {
    description = "A high level API for internationalizing Python libraries and applications";
+16 −5
Original line number Diff line number Diff line
{ lib, buildPythonPackage, fetchPypi, pytestCheckHook
{ lib, buildPythonPackage, fetchPypi, pytestCheckHook, pythonOlder
, atpublic, psutil, pytest-cov, sybil
, pdm-pep517
}:

buildPythonPackage rec {
  pname = "flufl.lock";
  pname = "flufl-lock";
  version = "7.1.1";
  format = "pyproject";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    pname = "flufl.lock";
    inherit version;
    hash = "sha256-rxQXKzW7xYaHvQa3DRaT/Y1Iy/D/3n5RphjBSK4kBC0=";
  };

@@ -22,11 +25,19 @@ buildPythonPackage rec {
  # relevant to the user.
  pytestFlagsArray = [ "--no-cov" ];

  pythonImportsCheck = [
    "flufl.lock"
  ];

  pythonNamespaces = [
    "flufl"
  ];

  meta = with lib; {
    homepage = "https://flufllock.readthedocs.io/";
    description = "NFS-safe file locking with timeouts for POSIX and Windows";
    changelog = "https://gitlab.com/warsaw/flufl.lock/-/blob/${version}/docs/NEWS.rst";
    maintainers = with maintainers; [ qyliss ];
    license = licenses.asl20;
    platforms = platforms.all;
  };
}
+1 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ buildPythonPackage rec {
    django-compressor
    django-extensions
    djangorestframework
    flufl_lock
    flufl-lock
    mistune
    networkx
    psycopg2
Loading