Diff: https://github.com/samuelcolvin/dirty-equals/compare/refs/tags/v0.5.0...v0.6.0 Changelog: https://github.com/samuelcolvin/dirty-equals/releases/tag/v0.6.0
52 lines
1,007 B
Nix
52 lines
1,007 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, hatchling
|
|
, pydantic
|
|
, pytest-examples
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, pytz
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dirty-equals";
|
|
version = "0.6.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "samuelcolvin";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-j+EqsKVRG2DDka1G3Px8ExYZt8QkqHkhojRnAHObdR4=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
hatchling
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
pytz
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pydantic
|
|
pytest-examples
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"dirty_equals"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Module for doing dirty (but extremely useful) things with equals";
|
|
homepage = "https://github.com/samuelcolvin/dirty-equals";
|
|
changelog = "https://github.com/samuelcolvin/dirty-equals/releases/tag/v${version}";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|