2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
loguru,
|
|
|
|
mbstrdecoder,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
tcolorpy,
|
|
|
|
termcolor,
|
|
|
|
typepy,
|
2023-02-09 11:40:11 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dataproperty";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "1.0.1";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2023-02-09 11:40:11 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "thombashi";
|
|
|
|
repo = pname;
|
2023-10-09 19:29:22 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-adUxUU9eASkC9n5ppZYNN0MP19u4xcL8XziBWSCp2L8=";
|
2023-02-09 11:40:11 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
mbstrdecoder
|
|
|
|
typepy
|
|
|
|
tcolorpy
|
|
|
|
] ++ typepy.optional-dependencies.datetime;
|
|
|
|
|
|
|
|
passthru.optional-dependencies = {
|
2024-06-05 15:53:02 +00:00
|
|
|
logging = [ loguru ];
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
2023-02-09 11:40:11 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
termcolor
|
|
|
|
];
|
2023-02-09 11:40:11 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "dataproperty" ];
|
2023-02-09 11:40:11 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2023-10-09 19:29:22 +00:00
|
|
|
description = "Library for extracting properties from data";
|
2023-02-09 11:40:11 +00:00
|
|
|
homepage = "https://github.com/thombashi/dataproperty";
|
2023-10-09 19:29:22 +00:00
|
|
|
changelog = "https://github.com/thombashi/DataProperty/releases/tag/v${version}";
|
2023-02-09 11:40:11 +00:00
|
|
|
license = licenses.mit;
|
2023-10-09 19:29:22 +00:00
|
|
|
maintainers = with maintainers; [ genericnerdyusername ];
|
2023-02-09 11:40:11 +00:00
|
|
|
};
|
|
|
|
}
|