mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 20:21:14 +00:00
pythonPackages.cwcwidth: init at 0.1.4
This commit is contained in:
parent
e50164a7ce
commit
afdf5089e7
34
pkgs/development/python-modules/cwcwidth/default.nix
Normal file
34
pkgs/development/python-modules/cwcwidth/default.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{ lib, buildPythonPackage, fetchPypi, cython, pytestCheckHook }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cwcwidth";
|
||||
version = "0.1.4";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1azrphpkcyggg38xvkfb9dpc4xmmm90p02kf8dkqd4d6j5w96aj8";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cython ];
|
||||
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
# Hack needed to make pytest + cython work
|
||||
# https://github.com/NixOS/nixpkgs/pull/82410#issuecomment-827186298
|
||||
preCheck = ''
|
||||
export HOME=$(mktemp -d)
|
||||
cp -r $TMP/$sourceRoot/tests $HOME
|
||||
pushd $HOME
|
||||
'';
|
||||
postCheck = "popd";
|
||||
|
||||
pythonImportsCheck = [ "cwcwidth" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python bindings for wc(s)width";
|
||||
homepage = "https://github.com/sebastinas/cwcwidth";
|
||||
changelog = "https://github.com/sebastinas/cwcwidth/blob/main/CHANGELOG.md";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ eduardosm ];
|
||||
};
|
||||
}
|
|
@ -1609,6 +1609,8 @@ in {
|
|||
|
||||
cvxpy = callPackage ../development/python-modules/cvxpy { };
|
||||
|
||||
cwcwidth = callPackage ../development/python-modules/cwcwidth { };
|
||||
|
||||
cx_Freeze = callPackage ../development/python-modules/cx_freeze { };
|
||||
|
||||
cx_oracle = callPackage ../development/python-modules/cx_oracle { };
|
||||
|
|
Loading…
Reference in a new issue