mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-13 09:17:07 +03:00
Substitute checkInputs with pythonImportsCheck
This commit is contained in:
parent
7becd9b2ef
commit
4ee94fb948
@ -3,9 +3,6 @@
|
|||||||
, fetchPypi
|
, fetchPypi
|
||||||
, click
|
, click
|
||||||
, distro
|
, distro
|
||||||
, tox
|
|
||||||
, pytest
|
|
||||||
, coverage
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -19,15 +16,9 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
propagatedBuildInputs = [ click distro ];
|
propagatedBuildInputs = [ click distro ];
|
||||||
|
|
||||||
checkInputs = [ tox pytest coverage ];
|
|
||||||
|
|
||||||
# We should skip tox dependencies installation to run tests but
|
|
||||||
# tox doesn't have such an option yet (https://github.com/tox-dev/tox/issues/410)
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
checkPhase = ''
|
pythonImportsCheck = [ "click" "userpath" ];
|
||||||
tox
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Cross-platform tool for adding locations to the user PATH";
|
description = "Cross-platform tool for adding locations to the user PATH";
|
||||||
|
Loading…
Reference in New Issue
Block a user