mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-11 20:37:20 +00:00
Merge pull request #241112 from fabaff/dirty-equals-bump
python311Packages.dirty-equals: 0.5.0 -> 0.6.0
This commit is contained in:
commit
d956557b4c
@ -2,24 +2,25 @@
|
|||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, hatchling
|
, hatchling
|
||||||
|
, pydantic
|
||||||
|
, pytest-examples
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, pytz
|
, pytz
|
||||||
, typing-extensions
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "dirty-equals";
|
pname = "dirty-equals";
|
||||||
version = "0.5.0";
|
version = "0.6.0";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.8";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "samuelcolvin";
|
owner = "samuelcolvin";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-yYptO6NPhQRlF0T2eXliw2WBms9uqTZVzdYzGj9pCug=";
|
hash = "sha256-j+EqsKVRG2DDka1G3Px8ExYZt8QkqHkhojRnAHObdR4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
@ -28,10 +29,11 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
pytz
|
pytz
|
||||||
typing-extensions
|
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
|
pydantic
|
||||||
|
pytest-examples
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -42,6 +44,7 @@ buildPythonPackage rec {
|
|||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Module for doing dirty (but extremely useful) things with equals";
|
description = "Module for doing dirty (but extremely useful) things with equals";
|
||||||
homepage = "https://github.com/samuelcolvin/dirty-equals";
|
homepage = "https://github.com/samuelcolvin/dirty-equals";
|
||||||
|
changelog = "https://github.com/samuelcolvin/dirty-equals/releases/tag/v${version}";
|
||||||
license = with licenses; [ mit ];
|
license = with licenses; [ mit ];
|
||||||
maintainers = with maintainers; [ fab ];
|
maintainers = with maintainers; [ fab ];
|
||||||
};
|
};
|
||||||
|
66
pkgs/development/python-modules/pytest-examples/default.nix
Normal file
66
pkgs/development/python-modules/pytest-examples/default.nix
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
{ lib
|
||||||
|
, black
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, hatchling
|
||||||
|
, pytest
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
, pythonRelaxDepsHook
|
||||||
|
, ruff
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "pytest-examples";
|
||||||
|
version = "0.0.9";
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.8";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "pydantic";
|
||||||
|
repo = "pytest-examples";
|
||||||
|
rev = "refs/tags/v${version}";
|
||||||
|
hash = "sha256-ecxSLbPnHdL60vlc7EjKmw5rATTePqJCa5QIdyxevv0=";
|
||||||
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
# ruff binary is used directly, the ruff Python package is not needed
|
||||||
|
substituteInPlace pytest_examples/lint.py \
|
||||||
|
--replace "'ruff'" "'${ruff}/bin/ruff'"
|
||||||
|
'';
|
||||||
|
|
||||||
|
pythonRemoveDeps = [
|
||||||
|
"ruff"
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
hatchling
|
||||||
|
pythonRelaxDepsHook
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
pytest
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
black
|
||||||
|
ruff
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeCheckInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"pytest_examples"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Pytest plugin for testing examples in docstrings and markdown files";
|
||||||
|
homepage = "https://github.com/pydantic/pytest-examples";
|
||||||
|
changelog = "https://github.com/pydantic/pytest-examples/releases/tag/v${version}";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
|
}
|
@ -9719,6 +9719,8 @@ self: super: with self; {
|
|||||||
|
|
||||||
pytest-error-for-skips = callPackage ../development/python-modules/pytest-error-for-skips { };
|
pytest-error-for-skips = callPackage ../development/python-modules/pytest-error-for-skips { };
|
||||||
|
|
||||||
|
pytest-examples = callPackage ../development/python-modules/pytest-examples { };
|
||||||
|
|
||||||
pytest-expect = callPackage ../development/python-modules/pytest-expect { };
|
pytest-expect = callPackage ../development/python-modules/pytest-expect { };
|
||||||
|
|
||||||
pytest-factoryboy = callPackage ../development/python-modules/pytest-factoryboy { };
|
pytest-factoryboy = callPackage ../development/python-modules/pytest-factoryboy { };
|
||||||
|
Loading…
Reference in New Issue
Block a user