depot/third_party/nixpkgs/pkgs/development/python-modules/argparse-dataclass/default.nix

25 lines
636 B
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook }:
buildPythonPackage rec {
pname = "argparse-dataclass";
version = "1.0.0";
src = fetchFromGitHub {
owner = "mivade";
repo = "argparse_dataclass";
rev = version;
sha256 = "6//XQKUnCH3ZtOL6M/EstMJ537nEmbuGQNqfelTluOs=";
};
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "argparse_dataclass" ];
meta = with lib; {
description = "Declarative CLIs with argparse and dataclasses";
homepage = "https://github.com/mivade/argparse_dataclass";
license = licenses.mit;
maintainers = with maintainers; [ tm-drtina ];
};
}