My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/dirty-equals/default.nix

49 lines
927 B

{ 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 ];
};
}