python310Packages.dirty-equals: init at 0.4

This commit is contained in:
Fabian Affolter 2022-05-21 21:45:27 +02:00
parent bfb3846da2
commit d328f0f8e9
2 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,49 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytestCheckHook
, pythonOlder
, pytz
, typing-extensions
}:
buildPythonPackage rec {
pname = "dirty-equals";
version = "0.4";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "samuelcolvin";
repo = pname;
rev = "v${version}";
hash = "sha256-rh7N/VRx4sv/MhhGPkaYCn2d19Sv5er2CkG6/fJuXX4=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
pytz
] ++ lib.optionals (pythonOlder "3.8") [
typing-extensions
];
checkInputs = [
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";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -2245,6 +2245,8 @@ in {
directv = callPackage ../development/python-modules/directv { };
dirty-equals = callPackage ../development/python-modules/dirty-equals { };
discid = callPackage ../development/python-modules/discid { };
discogs-client = callPackage ../development/python-modules/discogs-client { };