Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29072 from FRidh/python-fixes-3
Python: several fixes (3) (cherry picked from commit 56c56fb)
- Loading branch information
Showing
10 changed files
with
179 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
pkgs/development/python-modules/django-multiselectfield/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ lib | ||
, buildPythonPackage | ||
, fetchPypi | ||
, django | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "django-multiselectfield"; | ||
name = "${pname}-${version}"; | ||
version = "0.1.8"; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
sha256 = "52483d23aecbf6b502f9e6806e97da9288d5d7f2a3f99f736390763de68c8fd7"; | ||
}; | ||
|
||
propagatedBuildInputs = [ django ]; | ||
|
||
# No tests | ||
doCheck = false; | ||
|
||
meta = { | ||
description = "django-multiselectfield"; | ||
homepage = "https://github.com/goinnn/django-multiselectfield"; | ||
license = lib.licenses.lgpl3; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ lib | ||
, buildPythonPackage | ||
, fetchPypi | ||
, pbr | ||
, testtools | ||
, mock | ||
, python | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "fixtures"; | ||
version = "3.0.0"; | ||
name = "${pname}-${version}"; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
sha256 = "fcf0d60234f1544da717a9738325812de1f42c2fa085e2d9252d8fff5712b2ef"; | ||
}; | ||
|
||
propagatedBuildInputs = [ pbr testtools mock ]; | ||
|
||
checkPhase = '' | ||
${python.interpreter} -m testtools.run fixtures.test_suite | ||
''; | ||
|
||
meta = { | ||
description = "Reusable state for writing clean tests and more"; | ||
homepage = "https://pypi.python.org/pypi/fixtures"; | ||
license = lib.licenses.asl20; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ lib | ||
, buildPythonPackage | ||
, fetchPypi | ||
, funcsigs | ||
, six | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "logfury"; | ||
name = "${pname}-${version}"; | ||
version = "0.1.2"; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
sha256 = "1lywirv3d1lw691mc4mfpz7ak6r49klri43bbfgdnvsfppxminj2"; | ||
}; | ||
|
||
propagatedBuildInputs = [ | ||
funcsigs | ||
six | ||
]; | ||
|
||
# No tests | ||
doCheck = false; | ||
|
||
meta = { | ||
description = "Logfury is for python library maintainers. It allows for responsible, low-boilerplate logging of method calls."; | ||
homepage = "https://github.com/ppolewicz/logfury"; | ||
license = lib.licenses.bsd3; | ||
maintainers = with lib.maintainers; [ jwiegley ]; | ||
}; | ||
} |
36 changes: 36 additions & 0 deletions
36
pkgs/development/python-modules/readme_renderer/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ lib | ||
, buildPythonPackage | ||
, fetchPypi | ||
, pytest | ||
, bleach | ||
, docutils | ||
, pygments | ||
, six | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "readme_renderer"; | ||
version = "17.2"; | ||
name = "${pname}-${version}"; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
sha256 = "9deab442963a63a71ab494bf581b1c844473995a2357f4b3228a1df1c8cba8da"; | ||
}; | ||
|
||
checkInputs = [ pytest ]; | ||
|
||
propagatedBuildInputs = [ | ||
bleach docutils pygments six | ||
]; | ||
|
||
checkPhase = '' | ||
py.test | ||
''; | ||
|
||
meta = { | ||
description = "readme_renderer is a library for rendering readme descriptions for Warehouse"; | ||
homepage = https://github.com/pypa/readme_renderer; | ||
license = lib.licenses.asl20; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ lib | ||
, buildPythonPackage | ||
, fetchPypi | ||
, docutils | ||
, readme_renderer | ||
, pygments | ||
, mock | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "restview"; | ||
name = "${pname}-${version}"; | ||
version = "2.7.0"; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
sha256 = "e7842100f3de179c68cfe7c2cf56c61509cd6068bc6dd58ab42c0ade5d5f97ec"; | ||
}; | ||
|
||
propagatedBuildInputs = [ docutils readme_renderer pygments ]; | ||
checkInputs = [ mock ]; | ||
|
||
postPatch = '' | ||
# dict order breaking tests | ||
sed -i 's@<a href="http://www.example.com" rel="nofollow">@...@' src/restview/tests.py | ||
''; | ||
|
||
meta = { | ||
description = "ReStructuredText viewer"; | ||
homepage = http://mg.pov.lt/restview/; | ||
license = lib.licenses.gpl2; | ||
maintainers = with lib.maintainers; [ koral ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters