depot/third_party/nixpkgs/pkgs/development/python-modules/bx-py-utils/default.nix
Default email c7e6337bd0 Project import generated by Copybara.
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
2023-04-29 12:46:19 -04:00

73 lines
1.4 KiB
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, poetry-core
, beautifulsoup4
, boto3
, lxml
, pdoc
, pytestCheckHook
, requests-mock
}:
buildPythonPackage rec {
pname = "bx-py-utils";
version = "78";
disabled = pythonOlder "3.9";
format = "pyproject";
src = fetchFromGitHub {
owner = "boxine";
repo = "bx_py_utils";
rev = "refs/tags/v${version}";
hash = "sha256-dMcbv/qf+8Qzu47MVFU2QUviT/vjKsHp+45F/6NOlWo=";
};
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 ];
};
}