python313Packages.cmudict: enable tests
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
fetchFromGitHub,
|
||||
importlib-metadata,
|
||||
importlib-resources,
|
||||
poetry-core,
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
@@ -12,9 +13,12 @@ buildPythonPackage (finalAttrs: {
|
||||
version = "1.1.3";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit (finalAttrs) pname version;
|
||||
hash = "sha256-9sHLmi/+zvOHvxobk75sYckbxvQXFPGDw+tNWz4f9fY=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "prosegrinder";
|
||||
repo = "python-cmudict";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-pOqzezrDlwlVsvBHreHmLKxYKDxllZNs0TgLwxBhy58=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
build-system = [ poetry-core ];
|
||||
@@ -24,6 +28,8 @@ buildPythonPackage (finalAttrs: {
|
||||
importlib-resources
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
pythonImportsCheck = [ "cmudict" ];
|
||||
|
||||
meta = {
|
||||
|
||||
Reference in New Issue
Block a user