Unverified Commit 01af6888 authored by kirillrdy's avatar kirillrdy Committed by GitHub
Browse files

python3Packages.attrs-strict: cleanup, skip failing tests on python>=3.14 (#510097)

parents cd17fc7d 9ba12417
Loading
Loading
Loading
Loading
+18 −5
Original line number Diff line number Diff line
@@ -2,13 +2,19 @@
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  attrs,

  # build-system
  setuptools,
  setuptools-scm,

  # dependencies
  attrs,

  # tests
  pytestCheckHook,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "attrs-strict";
  version = "1.0.1";
  pyproject = true;
@@ -16,7 +22,7 @@ buildPythonPackage rec {
  src = fetchFromGitHub {
    owner = "bloomberg";
    repo = "attrs-strict";
    tag = version;
    tag = finalAttrs.version;
    hash = "sha256-dDOD4Y57E+i8D0S4q+C6t7zjBTsS8q2UFiS22Dsp0Z8=";
  };

@@ -35,11 +41,18 @@ buildPythonPackage rec {
    pytestCheckHook
  ];

  disabledTests = [
    # AssertionError: Regex pattern did not match
    "test_real_types"
    "test_recursive"
    "test_union_when_type_is_not_specified_raises"
  ];

  meta = {
    changelog = "https://github.com/bloomberg/attrs-strict/releases/tag/${version}";
    description = "Python package which contains runtime validation for attrs data classes based on the types existing in the typing module";
    homepage = "https://github.com/bloomberg/attrs-strict";
    changelog = "https://github.com/bloomberg/attrs-strict/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.asl20;
    maintainers = [ ];
  };
}
})
+28 −9
Original line number Diff line number Diff line
@@ -3,25 +3,32 @@
  stdenv,
  buildPythonPackage,
  fetchFromGitHub,
  pythonAtLeast,

  # build-system
  setuptools,

  # dependencies
  aniso8601,
  jsonschema,
  flask,
  importlib-resources,
  werkzeug,
  jsonschema,
  pytz,
  werkzeug,

  # tests
  blinker,
  faker,
  mock,
  blinker,
  py,
  pytest-benchmark,
  pytest-flask,
  pytest-mock,
  pytest-benchmark,
  pytest-vcr,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "flask-restx";
  version = "1.3.2";
  pyproject = true;
@@ -30,7 +37,7 @@ buildPythonPackage rec {
  src = fetchFromGitHub {
    owner = "python-restx";
    repo = "flask-restx";
    tag = version;
    tag = finalAttrs.version;
    hash = "sha256-KSHRfGX6M/w09P35A68u7uzMKaRioytScPh0Sw8JBfw=";
  };

@@ -80,6 +87,18 @@ buildPythonPackage rec {
    # we disable the tests in the meanwhile and let upstream decide
    "test_rfc822_value"
    "test_iso8601_value"
  ]
  ++ lib.optionals (pythonAtLeast "3.14") [
    # TypeError: Wildcard.__init__() takes 2 positional arguments but 3 were given
    "test_description"
    "test_max_length"
    "test_max_length_as_callable"
    "test_min_length"
    "test_min_length_as_callable"
    "test_pattern"
    "test_readonly"
    "test_required"
    "test_title"
  ];

  pythonImportsCheck = [ "flask_restx" ];
@@ -87,8 +106,8 @@ buildPythonPackage rec {
  meta = {
    description = "Fully featured framework for fast, easy and documented API development with Flask";
    homepage = "https://github.com/python-restx/flask-restx";
    changelog = "https://github.com/python-restx/flask-restx/blob/${version}/CHANGELOG.rst";
    changelog = "https://github.com/python-restx/flask-restx/blob/${finalAttrs.src.tag}/CHANGELOG.rst";
    license = lib.licenses.bsd3;
    maintainers = [ ];
  };
}
})
+15 −7
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  django,
  fetchFromGitHub,

  # build-system
  setuptools,

  # dependencies
  django,
  netaddr,
  netbox,
  numpy,
  psycopg,
  requests,
  setuptools,

  # tests
  netbox,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "netbox-interface-synchronization";
  version = "4.1.7";
  pyproject = true;
@@ -18,7 +25,7 @@ buildPythonPackage rec {
  src = fetchFromGitHub {
    owner = "NetTech2001";
    repo = "netbox-interface-synchronization";
    tag = version;
    tag = finalAttrs.version;
    hash = "sha256-02fdfE1BwpWsh21M0oP65kMAbFxDxYHsAEWA64rUl18=";
  };

@@ -29,6 +36,7 @@ buildPythonPackage rec {
    netaddr
    requests
    numpy
    psycopg # not specified in pyproject.toml, but required at import time
  ];

  # netbox is required for the pythonImportsCheck; plugin does not provide unit tests
@@ -43,9 +51,9 @@ buildPythonPackage rec {
  meta = {
    description = "Netbox plugin to compare and synchronize interfaces between devices and device types";
    homepage = "https://github.com/NetTech2001/netbox-interface-synchronization";
    changelog = "https://github.com/NetTech2001/netbox-interface-synchronization/releases/tag/${src.tag}";
    changelog = "https://github.com/NetTech2001/netbox-interface-synchronization/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.gpl3Only;
    platforms = lib.platforms.linux;
    maintainers = with lib.maintainers; [ felbinger ];
  };
}
})
+8 −2
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  django,
  fetchFromGitHub,

  # build-system
  poetry-core,

  # dependencies
  django,
  netaddr,
  netbox,
  poetry-core,
  psycopg,
}:

buildPythonPackage (finalAttrs: {
@@ -30,6 +35,7 @@ buildPythonPackage (finalAttrs: {
  dependencies = [
    django
    netaddr
    psycopg # not specified in pyproject.toml, but required at import time
  ];

  nativeCheckInputs = [ netbox ];
+16 −8
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  django,
  fetchFromGitHub,
  netaddr,
  netbox,

  # build-system
  setuptools,

  # dependencies
  pillow,
  qrcode,
  setuptools,
  psycopg,

  # nativeCheckInputs
  django,
  netaddr,
  netbox,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "netbox-qrcode";
  version = "0.0.20";
  pyproject = true;
@@ -18,7 +25,7 @@ buildPythonPackage rec {
  src = fetchFromGitHub {
    owner = "netbox-community";
    repo = "netbox-qrcode";
    tag = "v${version}";
    tag = "v${finalAttrs.version}";
    hash = "sha256-7dPMpuJ2nuj9rRmVrfthD+xrEHoUaLFqDJWC6cGGCwY=";
  };

@@ -33,6 +40,7 @@ buildPythonPackage rec {
    django
    netaddr
    netbox
    psycopg # not specified in pyproject.toml, but required at import time
  ];

  preFixup = ''
@@ -44,9 +52,9 @@ buildPythonPackage rec {
  meta = {
    description = "Netbox plugin for generate QR codes for objects: Rack, Device, Cable";
    homepage = "https://github.com/netbox-community/netbox-qrcode";
    changelog = "https://github.com/netbox-community/netbox-qrcode/releases/tag/${src.tag}";
    changelog = "https://github.com/netbox-community/netbox-qrcode/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.asl20;
    platforms = lib.platforms.linux;
    maintainers = with lib.maintainers; [ felbinger ];
  };
}
})
Loading