python3Packages.cornice: fix build and enable tests

This commit is contained in:
Leona Maroni
2024-05-12 13:39:26 +02:00
parent f81079cf20
commit 8e5843e7cf
@@ -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; {