python3Packages.clf: migrate to pyproject (#529050)
This commit is contained in:
@@ -2,26 +2,31 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
setuptools,
|
||||
docopt,
|
||||
requests,
|
||||
pygments,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "clf";
|
||||
version = "0.5.7";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
__structuredAttrs = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "abc919a1e99667f32fdde15dfb4bc527dbe22cf86a17acb78a449d7f2dfe937e";
|
||||
inherit (finalAttrs) pname version;
|
||||
hash = "sha256-q8kZoemWZ/Mv3eFd+0vFJ9viLPhqF6y3ikSdfy3+k34=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
patchPhase = ''
|
||||
sed -i 's/==/>=/' requirements.txt
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
docopt
|
||||
requests
|
||||
pygments
|
||||
@@ -31,6 +36,8 @@ buildPythonPackage rec {
|
||||
# No local packages or download links found for requests
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "clf" ];
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/ncrocfer/clf";
|
||||
description = "Command line tool to search snippets on Commandlinefu.com";
|
||||
@@ -38,4 +45,4 @@ buildPythonPackage rec {
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ koral ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user