depot/third_party/nixpkgs/pkgs/development/python-modules/dataproperty/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

52 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 ];
};
}