1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pythonOlder,
6
7 # build-system
8 hatchling,
9
10 # tests
11 pytestCheckHook,
12}:
13
14buildPythonPackage rec {
15 pname = "expandvars";
16 version = "1.1.1";
17 format = "pyproject";
18
19 disabled = pythonOlder "3.6";
20
21 src = fetchPypi {
22 inherit pname version;
23 hash = "sha256-mK3YJot2Df7kV73hwXv3RXlf3rwit92rdf0yeGU/HgU=";
24 };
25
26 nativeBuildInputs = [ hatchling ];
27
28 pythonImportsCheck = [ "expandvars" ];
29
30 nativeCheckInputs = [ pytestCheckHook ];
31
32 meta = with lib; {
33 description = "Expand system variables Unix style";
34 homepage = "https://github.com/sayanarijit/expandvars";
35 license = licenses.mit;
36 maintainers = with maintainers; [ geluk ];
37 };
38}