1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 hatchling,
6 pytestCheckHook,
7 python-dateutil,
8 pythonOlder,
9}:
10
11buildPythonPackage rec {
12 version = "0.8.2";
13 pname = "javaproperties";
14 pyproject = true;
15
16 disabled = pythonOlder "3.8";
17
18 src = fetchFromGitHub {
19 owner = "jwodder";
20 repo = "javaproperties";
21 tag = "v${version}";
22 sha256 = "sha256-8Deo6icInp7QpTqa+Ou6l36/23skxKOYRef2GbumDqo=";
23 };
24
25 build-system = [ hatchling ];
26
27 nativeCheckInputs = [
28 python-dateutil
29 pytestCheckHook
30 ];
31
32 disabledTests = [ "time" ];
33
34 disabledTestPaths = [ "test/test_propclass.py" ];
35
36 meta = {
37 description = "Python library for reading and writing Java .properties files";
38 homepage = "https://github.com/jwodder/javaproperties";
39 license = lib.licenses.mit;
40 maintainers = [ ];
41 };
42}