depot/third_party/nixpkgs/pkgs/development/python-modules/dirty-equals/default.nix
Default email 0d9fc34957 Project import generated by Copybara.
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
2023-01-20 11:41:00 +01:00

48 lines
892 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, hatchling
, pytestCheckHook
, pythonOlder
, pytz
, typing-extensions
}:
buildPythonPackage rec {
pname = "dirty-equals";
version = "0.5.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "samuelcolvin";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-yYptO6NPhQRlF0T2eXliw2WBms9uqTZVzdYzGj9pCug=";
};
nativeBuildInputs = [
hatchling
];
propagatedBuildInputs = [
pytz
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 ];
};
}