nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 decorator,
5 fetchPypi,
6 invoke,
7 pytest,
8 pytestCheckHook,
9}:
10
11buildPythonPackage rec {
12 pname = "pytest-relaxed";
13 version = "2.0.2";
14 format = "setuptools";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-lW6gKOww27+2gN2Oe0p/uPgKI5WV6Ius4Bi/LA1xgkg=";
19 };
20
21 patches = [
22 # https://github.com/bitprophet/pytest-relaxed/issues/28
23 # https://github.com/bitprophet/pytest-relaxed/pull/29
24 ./fix-oldstyle-hookimpl-setup.patch
25 ];
26
27 buildInputs = [ pytest ];
28
29 propagatedBuildInputs = [ decorator ];
30
31 nativeCheckInputs = [
32 invoke
33 pytestCheckHook
34 ];
35
36 enabledTestPaths = [ "tests" ];
37
38 disabledTests = [
39 "test_skips_pytest_fixtures"
40 ];
41
42 pythonImportsCheck = [ "pytest_relaxed" ];
43
44 meta = {
45 homepage = "https://pytest-relaxed.readthedocs.io/";
46 description = "Relaxed test discovery/organization for pytest";
47 changelog = "https://github.com/bitprophet/pytest-relaxed/blob/${version}/docs/changelog.rst";
48 license = lib.licenses.bsd0;
49 maintainers = [ ];
50 };
51}