blob: b82fa0900fbb44a96e195bad9b87e1f73ba678c8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{
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 ];
};
}
|