mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 12:23:02 +00:00
Merge pull request #257352 from panicgh/python-sqids
python3Packages.sqids: init at 0.3.0
This commit is contained in:
commit
fbce04c0f7
39
pkgs/development/python-modules/sqids/default.nix
Normal file
39
pkgs/development/python-modules/sqids/default.nix
Normal file
@ -0,0 +1,39 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pythonOlder
|
||||
, setuptools-scm
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "sqids";
|
||||
version = "0.3.0";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-qAY41kOp0m+mua/4bvVwuDW5p0EpwY675Ux3W1JsqbE=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "sqids" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://sqids.org/python";
|
||||
description = "A library that lets you generate short YouTube-looking IDs from numbers";
|
||||
license = with licenses; mit;
|
||||
maintainers = with maintainers; [ panicgh ];
|
||||
};
|
||||
}
|
@ -13197,6 +13197,8 @@ self: super: with self; {
|
||||
|
||||
spyse-python = callPackage ../development/python-modules/spyse-python { };
|
||||
|
||||
sqids = callPackage ../development/python-modules/sqids { };
|
||||
|
||||
sqlalchemy = callPackage ../development/python-modules/sqlalchemy { };
|
||||
|
||||
sqlalchemy-citext = callPackage ../development/python-modules/sqlalchemy-citext { };
|
||||
|
Loading…
Reference in New Issue
Block a user