python39Packages.packaging: add tests, remove unused six
This commit is contained in:
parent
df0f3ba49a
commit
64208378a8
1 changed files with 34 additions and 30 deletions
|
@ -2,40 +2,44 @@
|
|||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pyparsing
|
||||
, six
|
||||
, pytestCheckHook
|
||||
, pretend
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "packaging";
|
||||
version = "21.3";
|
||||
format = "pyproject";
|
||||
let
|
||||
packaging = buildPythonPackage rec {
|
||||
pname = "packaging";
|
||||
version = "21.3";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-3UfEKSfYmrkR5gZRiQfMLTofOLvQJjhZcGQ/nFuOz+s=";
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-3UfEKSfYmrkR5gZRiQfMLTofOLvQJjhZcGQ/nFuOz+s=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ pyparsing ];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
pretend
|
||||
];
|
||||
|
||||
# Prevent circular dependency
|
||||
doCheck = false;
|
||||
|
||||
passthru.tests = packaging.overridePythonAttrs (_: { doCheck = true; });
|
||||
|
||||
meta = with lib; {
|
||||
description = "Core utilities for Python packages";
|
||||
homepage = "https://github.com/pypa/packaging";
|
||||
license = with licenses; [ bsd2 asl20 ];
|
||||
maintainers = with maintainers; [ bennofs ];
|
||||
};
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ pyparsing six ];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
pretend
|
||||
];
|
||||
|
||||
# Prevent circular dependency
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Core utilities for Python packages";
|
||||
homepage = "https://github.com/pypa/packaging";
|
||||
license = [ licenses.bsd2 licenses.asl20 ];
|
||||
maintainers = with maintainers; [ bennofs ];
|
||||
};
|
||||
}
|
||||
in
|
||||
packaging
|
||||
|
|
Loading…
Reference in a new issue