Merge pull request #252439 from fabaff/dataproperty-bump

python311Packages.dataproperty: 0.55.0 -> 1.0.1
This commit is contained in:
Fabian Affolter 2023-09-01 11:26:34 +02:00 committed by GitHub
commit cd4fa04d7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 47 additions and 20 deletions

View file

@ -1,39 +1,55 @@
{ buildPythonPackage
{ lib
, buildPythonPackage
, fetchFromGitHub
, lib
, loguru
, mbstrdecoder
, typepy
, pytestCheckHook
, pythonOlder
, tcolorpy
, termcolor
, typepy
}:
buildPythonPackage rec {
pname = "dataproperty";
version = "0.55.0";
version = "1.0.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "thombashi";
repo = pname;
rev = "v${version}";
hash = "sha256-ODSrKZ8M/ni9r2gkVIKWaKkdr+3AVi4INkEKJ+cmb44=";
rev = "refs/tags/v${version}";
hash = "sha256-adUxUU9eASkC9n5ppZYNN0MP19u4xcL8XziBWSCp2L8=";
};
propagatedBuildInputs = [ mbstrdecoder typepy ];
propagatedBuildInputs = [
mbstrdecoder
typepy
tcolorpy
] ++ typepy.optional-dependencies.datetime;
nativeCheckInputs = [ pytestCheckHook ];
checkInputs = [ termcolor ];
passthru.optional-dependencies = {
logging = [
loguru
];
};
# Tests fail, even on non-nixos
pytestFlagsArray = [
"--deselect test/test_dataproperty.py::Test_DataPeroperty_len::test_normal_ascii_escape_sequence"
"--deselect test/test_dataproperty.py::Test_DataPeroperty_is_include_ansi_escape::test_normal"
"--deselect test/test_dataproperty.py::Test_DataPeroperty_repr::test_normal"
nativeCheckInputs = [
pytestCheckHook
termcolor
];
pythonImportsCheck = [
"dataproperty"
];
meta = with lib; {
description = "Library for extracting properties from data";
homepage = "https://github.com/thombashi/dataproperty";
description = "A library for extracting properties from data";
maintainers = with maintainers; [ genericnerdyusername ];
changelog = "https://github.com/thombashi/DataProperty/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ genericnerdyusername ];
};
}

View file

@ -105,11 +105,13 @@ buildPythonPackage rec {
"pathvalidate"
];
# Circular dependency
disabledTests = [
# Circular dependency
"test_normal_from_file"
"test_normal_from_text"
"test_normal_clear_theme"
# Test compares CLI output
"test_normal"
];
disabledTestPaths = [

View file

@ -26,14 +26,23 @@ buildPythonPackage rec {
propagatedBuildInputs = [
mbstrdecoder
python-dateutil
pytz
packaging
];
passthru.optional-dependencies = {
datetime = [
python-dateutil
pytz
packaging
];
};
nativeCheckInputs = [
pytestCheckHook
tcolorpy
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
pythonImportsCheck = [
"typepy"
];
meta = with lib; {