python310Packages.pathspec: set pyproject format
This requires adding setuptools to nativeBuildInputs. Plus a few other minor derivation improvements based on feedback.
This commit is contained in:
parent
68c0ca4416
commit
ea539db9e5
1 changed files with 10 additions and 2 deletions
|
@ -1,17 +1,25 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pythonOlder
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pathspec";
|
||||
pname = "pathspec";
|
||||
version = "0.10.1";
|
||||
format = "pyproject";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-es5hYbYh0x55AutrWuFI0Sz9I/SiSbn/trn+4SCEMj0=";
|
||||
hash = "sha256-es5hYbYh0x55AutrWuFI0Sz9I/SiSbn/trn+4SCEMj0=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Utility library for gitignore-style pattern matching of file paths";
|
||||
homepage = "https://github.com/cpburnz/python-path-specification";
|
||||
|
|
Loading…
Reference in a new issue