From 2e7355ff13a58347ff3ddc1139413b89ea313bf9 Mon Sep 17 00:00:00 2001 From: Alex Brandt Date: Sun, 21 Jul 2019 08:28:34 -0700 Subject: [PATCH] pythonPackages.stringcase: init at version 1.2.0 Needed by zfs-replicate. --- .../python-modules/stringcase/default.nix | 22 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 pkgs/development/python-modules/stringcase/default.nix diff --git a/pkgs/development/python-modules/stringcase/default.nix b/pkgs/development/python-modules/stringcase/default.nix new file mode 100644 index 000000000000..79f05f9b72d6 --- /dev/null +++ b/pkgs/development/python-modules/stringcase/default.nix @@ -0,0 +1,22 @@ +{ buildPythonPackage, fetchPypi, stdenv +}: + +buildPythonPackage rec { + pname = "stringcase"; + version = "1.2.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "023hv3gknblhf9lx5kmkcchzmbhkdhmsnknkv7lfy20rcs06k828"; + }; + + # PyPi package does not include tests. + doCheck = false; + + meta = with stdenv.lib; { + homepage = https://github.com/okunishinishi/python-stringcase; + description = "Convert string cases between camel case, pascal case, snake case etc…"; + license = licenses.mit; + maintainers = with maintainers; [ alunduil ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 180de8ed8a5b..e7c646802176 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6075,6 +6075,8 @@ in { pydantic = callPackage ../development/python-modules/pydantic { }; fastapi = callPackage ../development/python-modules/fastapi { }; + + stringcase = callPackage ../development/python-modules/stringcase { }; }); in fix' (extends overrides packages)