python3Packages.helper: enable tests, add pythonImportsCheck
This commit is contained in:
parent
a8d8a4c5bb
commit
8b42f4f092
@ -1,19 +1,35 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi, pyyaml, mock }:
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pyyaml
|
||||||
|
, pytestCheckHook
|
||||||
|
, mock
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "helper";
|
pname = "helper";
|
||||||
version = "2.5.0";
|
version = "2.5.0";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "gmr";
|
||||||
sha256 = "4af39471d25c8820f505bc5c5b1447878bdbec0781c60d73d9ffbdf5383152b4";
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "0zypjv8rncvrsgl200v7d3bn08gs48dwqvgamfqv71h07cj6zngp";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ mock ];
|
propagatedBuildInputs = [
|
||||||
propagatedBuildInputs = [ pyyaml ];
|
pyyaml
|
||||||
|
];
|
||||||
|
|
||||||
# No tests in the pypi tarball
|
checkInputs = [
|
||||||
doCheck = false;
|
pytestCheckHook
|
||||||
|
mock
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"helper"
|
||||||
|
"helper.config"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Development library for quickly writing configurable applications and daemons";
|
description = "Development library for quickly writing configurable applications and daemons";
|
||||||
|
Loading…
Reference in New Issue
Block a user