depot/third_party/nixpkgs/pkgs/development/python-modules/bx-py-utils/default.nix
Default email 4d5a95770c Project import generated by Copybara.
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
2023-03-04 15:14:45 +03: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 = "76";
disabled = pythonOlder "3.9";
format = "pyproject";
src = fetchFromGitHub {
owner = "boxine";
repo = "bx_py_utils";
rev = "refs/tags/v${version}";
hash = "sha256-daqbF+DCt4yvKHbEzwJyOzEgsYLqhR31a0pYqp9OSvo=";
};
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 ];
};
}