mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 10:23:29 +00:00
python311Packages.nameparser: add format
- disable on unsupported Python releases - add pythonImportsCheck - switch to unittestCheckHook
This commit is contained in:
parent
6b4453e7a7
commit
73cc147717
@ -1,20 +1,29 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, glibcLocales
|
||||
, pythonOlder
|
||||
, unittestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "nameparser";
|
||||
version = "1.1.3";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-qiQArXHM+AcGdbQDEaJXyTRln5GFSxVOG6bCZHYcBJ0=";
|
||||
};
|
||||
|
||||
LC_ALL="en_US.UTF-8";
|
||||
buildInputs = [ glibcLocales ];
|
||||
nativeCheckInputs = [
|
||||
unittestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"nameparser"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Module for parsing human names into their individual components";
|
||||
|
Loading…
Reference in New Issue
Block a user