Skip to content

Commit

Permalink
Merge pull request #303126 from r-ryantm/auto-update/python312Package…
Browse files Browse the repository at this point in the history
…s.schema-salad

python312Packages.schema-salad: 8.5.20240311110950 -> 8.5.20240410123758
  • Loading branch information
fabaff authored Apr 12, 2024
2 parents 09f966e + d76c4a6 commit 4de92eb
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 41 deletions.
89 changes: 48 additions & 41 deletions pkgs/development/python-modules/schema-salad/default.nix
Original file line number Diff line number Diff line change
@@ -1,52 +1,63 @@
{ lib
, black
, buildPythonPackage
, cachecontrol
, fetchFromGitHub
, importlib-resources
, mistune
, mypy-extensions
, pytestCheckHook
, pythonOlder
, rdflib
, requests
, ruamel-yaml
, setuptools-scm
{
lib,
black,
buildPythonPackage,
cachecontrol,
fetchFromGitHub,
importlib-resources,
mistune,
mypy,
mypy-extensions,
pytestCheckHook,
pythonRelaxDepsHook,
pythonOlder,
rdflib,
requests,
ruamel-yaml,
setuptools-scm,
types-dataclasses,
types-requests,
types-setuptools,
}:

buildPythonPackage rec {
pname = "schema-salad";
version = "8.5.20240311110950";
format = "setuptools";
version = "8.5.20240410123758";
pyproject = true;

disabled = pythonOlder "3.7";
disabled = pythonOlder "3.8";

src = fetchFromGitHub {
owner = "common-workflow-language";
repo = "schema_salad";
rev = "refs/tags/${version}";
hash = "sha256-bjeVgV9ovIVvGvSay24vKkzSXBbzgV05BkO5DojTX3o=";
hash = "sha256-AgXqeiA4sP7KBnUpb2uMWq45G0LhJ5uLtORrOG4UuB0=";
};

nativeBuildInputs = [
setuptools-scm
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "black>=19.10b0,<23.12" "black>=19.10b0"
'';

propagatedBuildInputs = [
cachecontrol
mistune
mypy-extensions
rdflib
requests
ruamel-yaml
] ++ cachecontrol.optional-dependencies.filecache
++ lib.optionals (pythonOlder "3.9") [
importlib-resources
];
build-system = [ setuptools-scm ];

nativeCheckInputs = [
pytestCheckHook
] ++ passthru.optional-dependencies.pycodegen;
dependencies =
[
cachecontrol
mistune
mypy
mypy-extensions
rdflib
requests
ruamel-yaml
types-dataclasses
types-requests
types-setuptools
]
++ cachecontrol.optional-dependencies.filecache
++ lib.optionals (pythonOlder "3.9") [ importlib-resources ];

nativeCheckInputs = [ pytestCheckHook ] ++ passthru.optional-dependencies.pycodegen;

preCheck = ''
rm tox.ini
Expand All @@ -62,14 +73,10 @@ buildPythonPackage rec {
"test_bad_schemas"
];

pythonImportsCheck = [
"schema_salad"
];
pythonImportsCheck = [ "schema_salad" ];

passthru.optional-dependencies = {
pycodegen = [
black
];
pycodegen = [ black ];
};

meta = with lib; {
Expand Down
31 changes: 31 additions & 0 deletions pkgs/development/python-modules/types-dataclasses/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
}:

buildPythonPackage rec {
pname = "types-dataclasses";
version = "0.6.6";
pyproject = true;

src = fetchPypi {
inherit pname version;
hash = "sha256-S1ovz45WjVoZdM1pAQ4yDhr4JRF37JaN57m7SapJ97k=";
};

build-system = [ setuptools ];

# Modules doesn't have tests
doCheck = false;

pythonImportsCheck = [ "dataclasses-stubs" ];

meta = with lib; {
description = "Typing stubs for dataclasses";
homepage = "https://github.com/python/typeshed";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16088,6 +16088,8 @@ self: super: with self; {

types-colorama = callPackage ../development/python-modules/types-colorama { };

types-dataclasses = callPackage ../development/python-modules/types-dataclasses { };

types-dateutil = callPackage ../development/python-modules/types-dateutil { };

types-decorator = callPackage ../development/python-modules/types-decorator { };
Expand Down

0 comments on commit 4de92eb

Please sign in to comment.