Merge pull request #309941 from leona-ya/zhf-cornice
python3Packages.cornice: fix build and enable tests
This commit is contained in:
commit
f8cd185b51
@ -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; {
|
||||
|
Loading…
Reference in New Issue
Block a user