3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/allure-python-commons/default.nix
R. RyanTM aeb48f3404
python310Packages.allure-python-commons: 2.9.45 -> 2.10.0 (#187848)
* python310Packages.allure-python-commons: 2.9.45 -> 2.10.0

* python310Packages.allure-python-commons: Disable Python <= 3.6

Co-authored-by: Jonas Heinrich <onny@project-insanity.org>
2022-08-23 17:33:20 +02:00

44 lines
973 B
Nix

{ lib
, fetchPypi
, buildPythonPackage
, pythonOlder
, attrs
, pluggy
, six
, allure-python-commons-test
, setuptools-scm
, python
}:
buildPythonPackage rec {
pname = "allure-python-commons";
version = "2.10.0";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-1NMTRLDwA3pKEeFrkbKM8O6yP/oOUMJ/z8aqvnIhLTw=";
};
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [ attrs pluggy six allure-python-commons-test ];
checkPhase = ''
${python.interpreter} -m doctest ./src/utils.py
${python.interpreter} -m doctest ./src/mapping.py
'';
pythonImportsCheck = [ "allure" "allure_commons" ];
meta = with lib; {
description = "Common engine for all modules. It is useful for make integration with your homemade frameworks";
homepage = "https://github.com/allure-framework/allure-python";
license = licenses.asl20;
maintainers = with maintainers; [ evanjs ];
};
}