python3Packages.param: enable tests

conduit-nginx
Fabian Affolter 2021-10-22 12:05:47 +02:00
parent f78568d24a
commit 840f7a2269
1 changed files with 15 additions and 9 deletions

View File

@ -1,23 +1,29 @@
{ lib
, buildPythonPackage
, fetchPypi
, flake8
, nose
, fetchFromGitHub
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "param";
version = "1.12.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-NdAoHI47623UafRv8LkXdSpUvtlNGwxWc0bHbQ/1nEo=";
src = fetchFromGitHub {
owner = "holoviz";
repo = pname;
rev = "v${version}";
sha256 = "02zmd4bwyn8b4q1l9jgddc70ii1i7bmynacanl1cvbr6la4v9b2c";
};
checkInputs = [ flake8 nose ];
checkInputs = [
pytestCheckHook
];
# tests not included with pypi release
doCheck = false;
postPatch = ''
# Version is not set properly
substituteInPlace setup.py \
--replace 'version=get_setup_version("param"),' 'version="${version}",'
'';
pythonImportsCheck = [
"param"