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:
Bjørn Forsman 2021-04-25 19:44:27 +02:00
parent 9db80bb156
commit 738e8eb967

View file

@ -1,15 +1,22 @@
{ lib, fetchPypi, buildPythonPackage }: { lib, fetchFromGitHub, buildPythonPackage, jsonschema }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "robotframework"; pname = "robotframework";
version = "4.0.1"; version = "4.0.1";
src = fetchPypi { src = fetchFromGitHub {
inherit pname version; owner = pname;
sha256 = "9fa609ceb78f67b1476edce8a7011b16bf3ab41c0fb8c211de6c99955eaf9fde"; repo = pname;
extension = "zip"; rev = "v${version}";
sha256 = "1nkph0slrhss6y52y8jgbdc6m8hbqjilrwp3r00wwyqdifrfa1i6";
}; };
checkInputs = [ jsonschema ];
checkPhase = ''
python3 utest/run.py
'';
meta = with lib; { meta = with lib; {
description = "Generic test automation framework"; description = "Generic test automation framework";
homepage = "https://robotframework.org/"; homepage = "https://robotframework.org/";