Merge pull request #309941 from leona-ya/zhf-cornice

python3Packages.cornice: fix build and enable tests
This commit is contained in:
Weijia Wang 2024-05-13 00:07:51 +02:00 committed by GitHub
commit f8cd185b51
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,26 +1,42 @@
{ lib
, buildPythonPackage
, fetchPypi
, fetchFromGitHub
, setuptools
, setuptools-scm
, pyramid
, simplejson
, six
, venusian
, pytestCheckHook
, pytest-cache
, webtest
, marshmallow
, colander
}:
buildPythonPackage rec {
pname = "cornice";
version = "6.1.0";
format = "setuptools";
pyproject = true;
src = fetchPypi {
inherit pname version;
sha256 = "sha256-v9G2wqmRp8yxsggrbenjuPGYtqK0oHqwgA4F3wWkU2E=";
src = fetchFromGitHub {
owner = "Cornices";
repo = "cornice";
rev = version;
hash = "sha256-jAf8unDPpr/ZAWkb9LhOW4URjwcRnaYVUKmfnYBStTg=";
};
propagatedBuildInputs = [ pyramid simplejson six venusian ];
build-system = [
setuptools
setuptools-scm
];
# tests not packaged with pypi release
doCheck = false;
dependencies = [ pyramid ];
nativeCheckInputs = [
pytestCheckHook
pytest-cache
webtest
marshmallow
colander
];
pythonImportsCheck = [ "cornice" ];
meta = with lib; {