2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
lib,
|
|
|
|
requests,
|
|
|
|
pyyaml,
|
|
|
|
setuptools,
|
|
|
|
wheel,
|
|
|
|
nodejs,
|
|
|
|
ruby,
|
|
|
|
pytestCheckHook,
|
2024-04-21 15:54:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "naked";
|
|
|
|
version = "0.1.32";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "chrissimpkins";
|
|
|
|
repo = "naked";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-KhygnURFggvUTR9wwWtORtfQES8ANd5sIaCONvIhfRM=";
|
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# fix hardcoded absolute paths
|
|
|
|
substituteInPlace **/*.* \
|
|
|
|
--replace /Users/ces/Desktop/code/naked /build/source
|
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
wheel
|
|
|
|
setuptools
|
|
|
|
];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
pyyaml
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
nodejs
|
|
|
|
ruby
|
|
|
|
];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
preCheck = ''
|
2024-04-21 15:54:59 +00:00
|
|
|
cd tests
|
|
|
|
|
|
|
|
PATH=$PATH:$out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
disabledTestPaths = [ "testfiles" ];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# test_NETWORK.py
|
|
|
|
"test_http_get"
|
|
|
|
"test_http_get_binary_file_absent"
|
|
|
|
"test_http_get_binary_file_exists"
|
|
|
|
"test_http_get_bin_type"
|
|
|
|
"test_http_get_follow_redirects"
|
|
|
|
"test_http_get_follow_redirects_false_content"
|
|
|
|
"test_http_get_follow_redirects_false_on_nofollow_arg"
|
|
|
|
"test_http_get_response_check_200"
|
|
|
|
"test_http_get_response_check_301"
|
|
|
|
"test_http_get_response_check_404"
|
|
|
|
"test_http_get_response_obj_present"
|
|
|
|
"test_http_get_ssl"
|
|
|
|
"test_http_get_status_check_true"
|
|
|
|
"test_http_get_status_ssl"
|
|
|
|
"test_http_get_status_ssl_redirect"
|
|
|
|
"test_http_get_text_absent"
|
|
|
|
"test_http_get_text_exists_request_overwrite"
|
|
|
|
"test_http_get_type"
|
|
|
|
"test_http_post"
|
|
|
|
"test_http_post_binary_file_absent"
|
|
|
|
"test_http_post_binary_file_present"
|
|
|
|
"test_http_post_binary_file_present_request_overwrite"
|
|
|
|
"test_http_post_reponse_status_200"
|
|
|
|
"test_http_post_response_status_200_ssl"
|
|
|
|
"test_http_post_ssl"
|
|
|
|
"test_http_post_status_check_true"
|
|
|
|
"test_http_post_text_file_absent"
|
|
|
|
"test_http_post_text_file_present_request_overwrite"
|
|
|
|
"test_http_post_type"
|
|
|
|
# test_SHELL.py
|
|
|
|
"test_muterun_missing_option_exitcode"
|
|
|
|
# test_SYSTEM.py
|
|
|
|
"test_sys_list_all_files"
|
|
|
|
"test_sys_list_all_files_cwd"
|
|
|
|
"test_sys_list_all_files_emptydir"
|
|
|
|
"test_sys_list_filter_files"
|
|
|
|
"test_sys_match_files"
|
|
|
|
"test_sys_match_files_fullpath"
|
|
|
|
"test_sys_meta_file_mod"
|
|
|
|
# test_TYPES.py
|
|
|
|
"test_xdict_key_random"
|
|
|
|
"test_xdict_key_random_sample"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "Naked" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Python command line application framework";
|
2024-04-21 15:54:59 +00:00
|
|
|
homepage = "https://github.com/chrissimpkins/naked";
|
|
|
|
downloadPage = "https://github.com/chrissimpkins/naked/tags";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.lucasew ];
|
|
|
|
};
|
|
|
|
}
|