From b5de795ba9ee2b15fee9881cc1de4ddc9131fe35 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Tue, 28 May 2024 18:39:11 +0200 Subject: [PATCH] python312Packages.attrs-strict: init at 1.0.1 --- .../python-modules/attrs-strict/default.nix | 42 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 44 insertions(+) create mode 100644 pkgs/development/python-modules/attrs-strict/default.nix diff --git a/pkgs/development/python-modules/attrs-strict/default.nix b/pkgs/development/python-modules/attrs-strict/default.nix new file mode 100644 index 000000000000..8f3e9a8548df --- /dev/null +++ b/pkgs/development/python-modules/attrs-strict/default.nix @@ -0,0 +1,42 @@ +{ + lib, + buildPythonPackage, + fetchPypi, + attrs, + setuptools, + setuptools-scm, +}: + +buildPythonPackage rec { + pname = "attrs-strict"; + version = "1.0.1"; + pyproject = true; + + src = fetchPypi { + inherit version; + pname = "attrs_strict"; + hash = "sha256-5wSGNiAUbF8qi2Ac1FdNFIkT2yb8Bjb5Qf5CEuQl6v4="; + }; + + build-system = [ + setuptools + setuptools-scm + ]; + + dependencies = [ + attrs + ]; + + pythonImportsCheck = [ "attrs_strict" ]; + + # No tests in the pypi archive + doCheck = false; + + 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"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ drupol ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 54ce24d46f25..7f2202f1cdbf 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1053,6 +1053,8 @@ self: super: with self; { attrs = callPackage ../development/python-modules/attrs { }; + attrs-strict = callPackage ../development/python-modules/attrs-strict { }; + aubio = callPackage ../development/python-modules/aubio { }; audible = callPackage ../development/python-modules/audible { };