python3Packages.robotframework: run the unit tests
The zip-file from PyPI lacks a few directories, notably the one containing the unit tests. So switch from fetchPypi to fetchFromGitHub.
This commit is contained in:
parent
9db80bb156
commit
738e8eb967
|
@ -1,15 +1,22 @@
|
|||
{ lib, fetchPypi, buildPythonPackage }:
|
||||
{ lib, fetchFromGitHub, buildPythonPackage, jsonschema }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "robotframework";
|
||||
version = "4.0.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "9fa609ceb78f67b1476edce8a7011b16bf3ab41c0fb8c211de6c99955eaf9fde";
|
||||
extension = "zip";
|
||||
src = fetchFromGitHub {
|
||||
owner = pname;
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1nkph0slrhss6y52y8jgbdc6m8hbqjilrwp3r00wwyqdifrfa1i6";
|
||||
};
|
||||
|
||||
checkInputs = [ jsonschema ];
|
||||
|
||||
checkPhase = ''
|
||||
python3 utest/run.py
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Generic test automation framework";
|
||||
homepage = "https://robotframework.org/";
|
||||
|
|
Loading…
Reference in New Issue