Merge pull request #83389 from jonringer/add-xdg
python3Packages.xdg: init at 4.0.1
This commit is contained in:
commit
ede6944f4f
@ -4,11 +4,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "clikit";
|
||||
version = "0.4.1";
|
||||
version = "0.4.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "8ae4766b974d7b1983e39d501da9a0aadf118a907a0c9b50714d027c8b59ea81";
|
||||
sha256 = "0glppxx0pyppjcigzs8h16srlbxb6nci0282xfy3ayvwbq8pwbbf";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
@ -1,24 +1,21 @@
|
||||
{ lib, buildPythonPackage, fetchFromGitHub, pytest }:
|
||||
{ lib, buildPythonPackage, fetchPypi, poetry, pytest }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pastel";
|
||||
version = "0.1.0";
|
||||
version = "0.2.0";
|
||||
|
||||
# No tests in PyPi tarball
|
||||
src = fetchFromGitHub {
|
||||
owner = "sdispater";
|
||||
repo = "pastel";
|
||||
rev = version;
|
||||
sha256 = "1b4ag7jr7j0sxly5g29imdq8g0d4ixhbck55dblr45mlsidydx0s";
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0dnaw44ss10i10z4ksy0xljknvjap7rb7g0b8p6yzm5x4g2my5a6";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
checkPhase = ''
|
||||
pytest tests -sq
|
||||
pytest
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = https://github.com/sdispater/pastel;
|
||||
homepage = "https://github.com/sdispater/pastel";
|
||||
description = "Bring colors to your terminal";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ jakewaksbaum ];
|
||||
|
@ -36,7 +36,7 @@ in buildPythonPackage rec {
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0y528095njf28isbcp5iwbf12j67xhxnrkac93pws0zy133v7kc1";
|
||||
sha256 = "02h387k0xssvv78yy82pcpknpq4w5ym2in1zl8cg9r5wljl5w6cf";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
34
pkgs/development/python-modules/xdg/default.nix
Normal file
34
pkgs/development/python-modules/xdg/default.nix
Normal file
@ -0,0 +1,34 @@
|
||||
{ lib, buildPythonPackage, fetchFromGitHub, isPy27
|
||||
, clikit
|
||||
, poetry
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "4.0.1";
|
||||
pname = "xdg";
|
||||
disabled = isPy27;
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "srstevenson";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "13kgnbwam6wmdbig0m98vmyjcqrp0j62nmfknb6prr33ns2nxbs2";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ poetry ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
clikit
|
||||
];
|
||||
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "XDG Base Directory Specification for Python";
|
||||
homepage = "https://github.com/srstevenson/xdg";
|
||||
license = licenses.isc;
|
||||
maintainers = with maintainers; [ jonringer ];
|
||||
};
|
||||
}
|
@ -3943,6 +3943,8 @@ in {
|
||||
|
||||
colored = callPackage ../development/python-modules/colored { };
|
||||
|
||||
xdg = callPackage ../development/python-modules/xdg { };
|
||||
|
||||
xdis = callPackage ../development/python-modules/xdis { };
|
||||
|
||||
xnd = callPackage ../development/python-modules/xnd { };
|
||||
|
Loading…
Reference in New Issue
Block a user