53 lines
1 KiB
Nix
53 lines
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;
|
||
|
|
||
|
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 ];
|
||
|
};
|
||
|
}
|