about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlex Brandt <alunduil@gmail.com>2019-07-21 08:28:34 -0700
committerAlex Brandt <alunduil@gmail.com>2019-08-02 08:04:21 -0700
commit2e7355ff13a58347ff3ddc1139413b89ea313bf9 (patch)
tree1de8344a8cba5fcc224e4ad2d410dd8c88b01714
parentc64c5a3be81163ec304d06ff5aad6bcdf3e309ff (diff)
downloadnixlib-2e7355ff13a58347ff3ddc1139413b89ea313bf9.tar
nixlib-2e7355ff13a58347ff3ddc1139413b89ea313bf9.tar.gz
nixlib-2e7355ff13a58347ff3ddc1139413b89ea313bf9.tar.bz2
nixlib-2e7355ff13a58347ff3ddc1139413b89ea313bf9.tar.lz
nixlib-2e7355ff13a58347ff3ddc1139413b89ea313bf9.tar.xz
nixlib-2e7355ff13a58347ff3ddc1139413b89ea313bf9.tar.zst
nixlib-2e7355ff13a58347ff3ddc1139413b89ea313bf9.zip
pythonPackages.stringcase: init at version 1.2.0
Needed by zfs-replicate.
-rw-r--r--pkgs/development/python-modules/stringcase/default.nix22
-rw-r--r--pkgs/top-level/python-packages.nix2
2 files changed, 24 insertions, 0 deletions
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)