Merge pull request #212822 from wegank/scooby-bump
python310Packages.scooby: 0.7.0 -> 0.7.1
This commit is contained in:
@@ -1,27 +1,65 @@
|
||||
{ lib
|
||||
, beautifulsoup4
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, fetchFromGitHub
|
||||
, numpy
|
||||
, pytest-console-scripts
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, pyvips
|
||||
, scipy
|
||||
, setuptools-scm
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "scooby";
|
||||
version = "0.7.0";
|
||||
version = "0.7.1";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-scD/uuAtepatt8Yn7b6PJMfSj9AT7iOy0HuVHyVvEhk=";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "banesullivan";
|
||||
repo = pname;
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-wKbCIA6Xp+VYhcQ5ZpHo5usB+ksnMAJyv5naBvl4Cxo=";
|
||||
};
|
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "scooby" ];
|
||||
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"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/banesullivan/scooby";
|
||||
changelog = "https://github.com/banesullivan/scooby/releases/tag/v${version}";
|
||||
description = "A lightweight tool for reporting Python package versions and hardware resources";
|
||||
homepage = "https://github.com/banesullivan/scooby";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ wegank ];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user