depot/third_party/nixpkgs/pkgs/development/python-modules/scooby/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

64 lines
1.4 KiB
Nix

{
lib,
beautifulsoup4,
buildPythonPackage,
fetchFromGitHub,
numpy,
pytest-console-scripts,
pytestCheckHook,
pythonOlder,
pyvips,
scipy,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "scooby";
version = "0.10.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "banesullivan";
repo = "scooby";
rev = "refs/tags/v${version}";
hash = "sha256-KXhLN8KPz61l+4v88+kVSvodT6OXDJ3Pw9A9aFWSqYE=";
};
nativeBuildInputs = [ setuptools-scm ];
nativeCheckInputs = [
beautifulsoup4
numpy
pytest-console-scripts
pytestCheckHook
pyvips
scipy
];
preCheck = ''
export PATH="$PATH:$out/bin";
'';
pythonImportsCheck = [ "scooby" ];
disabledTests = [
# Tests have additions requirements (e.g., time and module)
"test_get_version"
"test_tracking"
"test_import_os_error"
"test_import_time"
# TypeError: expected str, bytes or os.PathLike object, not list
"test_cli"
];
meta = with lib; {
changelog = "https://github.com/banesullivan/scooby/releases/tag/v${version}";
description = "Lightweight tool for reporting Python package versions and hardware resources";
mainProgram = "scooby";
homepage = "https://github.com/banesullivan/scooby";
license = licenses.mit;
maintainers = with maintainers; [ wegank ];
};
}