mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-13 08:23:25 +00:00
8eb97ac1a1
Diff: https://github.com/pytest-dev/pytest-asyncio/compare/refs/tags/v0.21.0...v0.21.1 Changelog: https://github.com/pytest-dev/pytest-asyncio/blob/v0.21.1/docs/source/reference/changelog.rst
62 lines
1.2 KiB
Nix
62 lines
1.2 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, callPackage
|
|
, fetchFromGitHub
|
|
, flaky
|
|
, hypothesis
|
|
, pytest
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, setuptools-scm
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytest-asyncio";
|
|
version = "0.21.1";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pytest-dev";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-Wpo8MpCPGiXrckT2x5/yBYtGlzso/L2urG7yGc7SPkA=";
|
|
};
|
|
|
|
outputs = [
|
|
"out"
|
|
"testout"
|
|
];
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
buildInputs = [
|
|
pytest
|
|
];
|
|
|
|
postInstall = ''
|
|
mkdir $testout
|
|
cp -R tests $testout/tests
|
|
'';
|
|
|
|
doCheck = false;
|
|
passthru.tests.pytest = callPackage ./tests.nix {};
|
|
|
|
pythonImportsCheck = [
|
|
"pytest_asyncio"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Library for testing asyncio code with pytest";
|
|
homepage = "https://github.com/pytest-dev/pytest-asyncio";
|
|
changelog = "https://github.com/pytest-dev/pytest-asyncio/blob/v${version}/docs/source/reference/changelog.rst";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|