2021-08-08 00:44:33 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, fetchpatch
|
|
|
|
, pytest
|
|
|
|
}:
|
2018-12-14 19:53:02 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-dependency";
|
2021-08-08 00:44:33 +01:00
|
|
|
version = "0.5.1";
|
2018-12-14 19:53:02 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-08-08 00:44:33 +01:00
|
|
|
hash = "sha256-wqiSkGGSZj+FAwpquRME5QjlRs3f5VfWktYexXodlGs=";
|
2018-12-14 19:53:02 +00:00
|
|
|
};
|
|
|
|
|
2021-03-20 20:48:57 +00:00
|
|
|
patches = [
|
2021-08-08 00:44:33 +01:00
|
|
|
# Fix build with pytest >= 6.2.0, https://github.com/RKrahl/pytest-dependency/pull/51
|
2021-03-20 20:48:57 +00:00
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/RKrahl/pytest-dependency/commit/0930889a13e2b9baa7617f05dc9b55abede5209d.patch";
|
2021-08-08 00:44:33 +01:00
|
|
|
sha256 = "sha256-xRreoIz8+yW0mAUb4FvKVlPjALzMAZDmdpbmDKRISE0=";
|
2021-03-20 20:48:57 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-03-12 22:20:19 +00:00
|
|
|
buildInputs = [ pytest ];
|
2018-12-14 19:53:02 +00:00
|
|
|
|
2019-04-26 19:40:49 +01:00
|
|
|
checkInputs = [ pytest ];
|
|
|
|
|
2018-12-14 19:53:02 +00:00
|
|
|
checkPhase = ''
|
|
|
|
pytest
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/RKrahl/pytest-dependency";
|
2018-12-14 19:53:02 +00:00
|
|
|
description = "Manage dependencies of tests";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
|
|
|
}
|