python3Packages.allure-behave: fix src, refactor

Changed files
+14 -11
pkgs
development
python-modules
allure-behave
+14 -11
pkgs/development/python-modules/allure-behave/default.nix
···
{
lib,
-
fetchPypi,
+
fetchFromGitHub,
buildPythonPackage,
-
pythonOlder,
behave,
allure-python-commons,
setuptools-scm,
···
buildPythonPackage rec {
pname = "allure-behave";
version = "2.15.0";
-
format = "setuptools";
+
pyproject = true;
-
disabled = pythonOlder "3.7";
-
-
src = fetchPypi {
-
inherit pname version;
-
hash = "sha256-puJuaeA6uFJRF1ZS7jWY55Mmk2Y4SQiuhZGEGi7yexs=";
+
src = fetchFromGitHub {
+
owner = "allure-framework";
+
repo = "allure-python";
+
tag = version;
+
hash = "sha256-I3Zh9frOplcPqLd8b4peNM9WtbNmQjHX6ocVJJwPzyc=";
};
-
nativeBuildInputs = [ setuptools-scm ];
+
sourceRoot = "${src.name}/allure-behave";
-
pythonImportsCheck = [ "allure_behave" ];
+
build-system = [ setuptools-scm ];
-
propagatedBuildInputs = [
+
dependencies = [
allure-python-commons
behave
];
+
+
doCheck = false; # no tests
+
+
pythonImportsCheck = [ "allure_behave" ];
meta = with lib; {
description = "Allure behave integration";