From 3168323c61467373b7d01fa66621335974439823 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Wed, 1 Feb 2023 20:12:57 -0800 Subject: [PATCH] python310Packages.bx-py-utils: init at 75 --- .../python-modules/bx-py-utils/default.nix | 73 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 75 insertions(+) create mode 100644 pkgs/development/python-modules/bx-py-utils/default.nix diff --git a/pkgs/development/python-modules/bx-py-utils/default.nix b/pkgs/development/python-modules/bx-py-utils/default.nix new file mode 100644 index 000000000000..c3072f914342 --- /dev/null +++ b/pkgs/development/python-modules/bx-py-utils/default.nix @@ -0,0 +1,73 @@ +{ lib +, buildPythonPackage +, pythonOlder +, fetchFromGitHub +, poetry-core +, beautifulsoup4 +, boto3 +, lxml +, pdoc +, pytestCheckHook +, requests-mock +}: + +buildPythonPackage rec { + pname = "bx-py-utils"; + version = "75"; + + disabled = pythonOlder "3.9"; + + format = "pyproject"; + + src = fetchFromGitHub { + owner = "boxine"; + repo = "bx_py_utils"; + rev = "refs/tags/v${version}"; + hash = "sha256-+RHt5QTXxuaY1tDe1M66TrQfT9I7X56oVQAW36mzSwM="; + }; + + nativeBuildInputs = [ + poetry-core + ]; + + pythonImportsCheck = [ + "bx_py_utils.anonymize" + "bx_py_utils.auto_doc" + "bx_py_utils.compat" + "bx_py_utils.dict_utils" + "bx_py_utils.environ" + "bx_py_utils.error_handling" + "bx_py_utils.file_utils" + "bx_py_utils.graphql_introspection" + "bx_py_utils.hash_utils" + "bx_py_utils.html_utils" + "bx_py_utils.iteration" + "bx_py_utils.path" + "bx_py_utils.processify" + "bx_py_utils.rison" + "bx_py_utils.stack_info" + "bx_py_utils.string_utils" + "bx_py_utils.test_utils" + "bx_py_utils.text_tools" + ]; + + nativeCheckInputs = [ + beautifulsoup4 + boto3 + lxml + pdoc + pytestCheckHook + requests-mock + ]; + + disabledTestPaths = [ + "bx_py_utils_tests/tests/test_project_setup.py" + ]; + + meta = { + description = "Various Python utility functions"; + homepage = "https://github.com/boxine/bx_py_utils"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 5ccf22c6a6a9..d660cdd748ac 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1487,6 +1487,8 @@ self: super: with self; { bundlewrap = callPackage ../development/python-modules/bundlewrap { }; + bx-py-utils = callPackage ../development/python-modules/bx-py-utils { }; + bx-python = callPackage ../development/python-modules/bx-python { }; bwapy = callPackage ../development/python-modules/bwapy { };