Skip to content

Commit

Permalink
python311Packages.zconfig: refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
fabaff committed Jan 12, 2024
1 parent a6fb345 commit 6acd292
Showing 1 changed file with 25 additions and 10 deletions.
35 changes: 25 additions & 10 deletions pkgs/development/python-modules/zconfig/default.nix
Original file line number Diff line number Diff line change
@@ -1,32 +1,47 @@
{ lib
, stdenv
, fetchPypi
, buildPythonPackage
, zope-testrunner
, manuel
, docutils
, fetchPypi
, manuel
, pygments
, pythonOlder
, zope-testrunner
}:

buildPythonPackage rec {
pname = "ZConfig";
pname = "zconfig";
version = "4.0";
format = "setuptools";

disabled = pythonOlder "3.7";

src = fetchPypi {
inherit pname version;
pname = "ZConfig";
inherit version;
hash = "sha256-+NZC+6a6mNCGMb4sH3GtGVfAUf70qj0/ufHgjcYdAVY=";
};

patches = lib.optional stdenv.hostPlatform.isMusl ./remove-setlocale-test.patch;

buildInputs = [ manuel docutils ];
propagatedBuildInputs = [ zope-testrunner ];
nativeCheckInputs = [ pygments ];
buildInputs = [
manuel
docutils
];

propagatedBuildInputs = [
zope-testrunner
];

nativeCheckInputs = [
pygments
];

meta = with lib; {
description = "Structured Configuration Library";
homepage = "https://pypi.python.org/pypi/ZConfig";
homepage = "https://github.com/zopefoundation/ZConfig";
changelog = "https://github.com/zopefoundation/ZConfig/blob/${version}/CHANGES.rst";
license = licenses.zpl20;
maintainers = [ maintainers.goibhniu ];
maintainers = with maintainers; [ goibhniu ];
};
}

0 comments on commit 6acd292

Please sign in to comment.