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