fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
loguru,
|
|
mbstrdecoder,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
tcolorpy,
|
|
termcolor,
|
|
typepy,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dataproperty";
|
|
version = "1.0.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "thombashi";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-adUxUU9eASkC9n5ppZYNN0MP19u4xcL8XziBWSCp2L8=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
mbstrdecoder
|
|
typepy
|
|
tcolorpy
|
|
] ++ typepy.optional-dependencies.datetime;
|
|
|
|
passthru.optional-dependencies = {
|
|
logging = [ loguru ];
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
termcolor
|
|
];
|
|
|
|
pythonImportsCheck = [ "dataproperty" ];
|
|
|
|
meta = with lib; {
|
|
description = "Library for extracting properties from data";
|
|
homepage = "https://github.com/thombashi/dataproperty";
|
|
changelog = "https://github.com/thombashi/DataProperty/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ genericnerdyusername ];
|
|
};
|
|
}
|