567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
41 lines
825 B
Nix
41 lines
825 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
mock,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
six,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "configobj";
|
|
version = "5.0.9";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "DiffSK";
|
|
repo = "configobj";
|
|
tag = "v${version}";
|
|
hash = "sha256-duPCGBaHCXp4A6ZHLnyL1SZtR7K4FJ4hs5wCE1V9WB4=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
checkInputs = [ mock ];
|
|
|
|
pythonImportsCheck = [ "configobj" ];
|
|
|
|
meta = {
|
|
description = "Config file reading, writing and validation";
|
|
homepage = "https://github.com/DiffSK/configobj";
|
|
changelog = "https://github.com/DiffSK/configobj/blob/v${version}/CHANGES.rst";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = [ ];
|
|
};
|
|
}
|