mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
0801990cff
- add pythonImportsCheck - disable on older Python releases - enable tests
49 lines
941 B
Nix
49 lines
941 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, boltons
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "face";
|
|
version = "22.0.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-1daS+QvI9Zh7Y25H42OEubvaSZqvCneqCwu+g0x2kj0=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
boltons
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"face"
|
|
];
|
|
|
|
disabledTests = [
|
|
# Assertion error as we take the Python release into account
|
|
"test_search_prs_basic"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A command-line interface parser and framework";
|
|
longDescription = ''
|
|
A command-line interface parser and framework, friendly for
|
|
users, full-featured for developers.
|
|
'';
|
|
homepage = "https://github.com/mahmoud/face";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ twey ];
|
|
};
|
|
}
|