summaryrefslogtreecommitdiffstats
path: root/pkgs
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-11-13 13:45:05 +0100
committerGitHub <noreply@github.com>2021-11-13 13:45:05 +0100
commitd14a8e372f5c0d8801471a2e5884b196f6d1ae73 (patch)
tree5df9090008a718584a2dc7733a830fc22ceb89c6 /pkgs
parenta9b3a7d7400e2bc09f836ae6d626631c7d2bb30b (diff)
parent8956b48fa13020684b8d096c86c89bffe0f3daa7 (diff)
Merge pull request #145696 from fabaff/bump-json-schema-for-humans
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/json-schema-for-humans/default.nix27
-rw-r--r--pkgs/development/python-modules/libcst/default.nix10
2 files changed, 24 insertions, 13 deletions
diff --git a/pkgs/development/python-modules/json-schema-for-humans/default.nix b/pkgs/development/python-modules/json-schema-for-humans/default.nix
index 8df7d6f6e00f..9e6144a8ec26 100644
--- a/pkgs/development/python-modules/json-schema-for-humans/default.nix
+++ b/pkgs/development/python-modules/json-schema-for-humans/default.nix
@@ -2,14 +2,16 @@
, beautifulsoup4
, buildPythonPackage
, click
+, dataclasses
, dataclasses-json
, fetchFromGitHub
, htmlmin
, jinja2
, markdown2
-, pbr
+, poetry-core
, pygments
, pytestCheckHook
+, pythonOlder
, pytz
, pyyaml
, requests
@@ -17,16 +19,21 @@
buildPythonPackage rec {
pname = "json-schema-for-humans";
- version = "0.31.0";
+ version = "0.39.1";
+ format = "pyproject";
+
+ disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "coveooss";
repo = pname;
rev = "v${version}";
- sha256 = "1aj1w0qxdw8d6mf5vngk0xjgs7z8vzwc2aycahnkqg7q3cagq19n";
+ sha256 = "sha256-JoD4XEfIUsAbITWa0LMYgNP6WzrblI4HUIgLpx5gn18=";
};
- nativeBuildInputs = [ pbr ];
+ nativeBuildInputs = [
+ poetry-core
+ ];
propagatedBuildInputs = [
click
@@ -38,12 +45,10 @@ buildPythonPackage rec {
pytz
pyyaml
requests
+ ] ++ lib.optionals (pythonOlder "3.7") [
+ dataclasses
];
- preBuild = ''
- export PBR_VERSION=0.0.1
- '';
-
checkInputs = [
beautifulsoup4
pytestCheckHook
@@ -52,9 +57,13 @@ buildPythonPackage rec {
disabledTests = [
# Tests require network access
"test_references_url"
+ # Tests are failing
+ "TestMdGenerate"
];
- pythonImportsCheck = [ "json_schema_for_humans" ];
+ pythonImportsCheck = [
+ "json_schema_for_humans"
+ ];
meta = with lib; {
description = "Quickly generate HTML documentation from a JSON schema";
diff --git a/pkgs/development/python-modules/libcst/default.nix b/pkgs/development/python-modules/libcst/default.nix
index 5b950ab57397..712b15f17f22 100644
--- a/pkgs/development/python-modules/libcst/default.nix
+++ b/pkgs/development/python-modules/libcst/default.nix
@@ -15,11 +15,11 @@
buildPythonPackage rec {
pname = "libcst";
- version = "0.3.20";
+ version = "0.3.21";
+ format = "setuptools";
+
disabled = pythonOlder "3.6";
- # Some files for tests missing from PyPi
- # https://github.com/Instagram/LibCST/issues/331
src = fetchFromGitHub {
owner = "instagram";
repo = pname;
@@ -54,7 +54,9 @@ buildPythonPackage rec {
"test_codemod_formatter_error_input"
];
- pythonImportsCheck = [ "libcst" ];
+ pythonImportsCheck = [
+ "libcst"
+ ];
meta = with lib; {
description = "Concrete Syntax Tree (CST) parser and serializer library for Python";