commit
6baa27147e
26
pkgs/development/python-modules/chainstream/default.nix
Normal file
26
pkgs/development/python-modules/chainstream/default.nix
Normal file
@ -0,0 +1,26 @@
|
||||
{ lib, fetchPypi, python3Packages }:
|
||||
|
||||
python3Packages.buildPythonPackage rec {
|
||||
pname = "chainstream";
|
||||
version = "1.0.1";
|
||||
|
||||
pyproject = true;
|
||||
|
||||
nativeBuildInputs = [ python3Packages.setuptools ];
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-302P1BixEmkODm+qTLZwaWLktrlf9cEziQ/TIVfI07c=";
|
||||
};
|
||||
|
||||
pythonImportsCheck = [
|
||||
"chainstream"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Chain I/O streams together into a single stream";
|
||||
homepage = "https://github.com/rrthomas/chainstream";
|
||||
license = licenses.cc-by-sa-40;
|
||||
maintainers = with maintainers; [ cbley ];
|
||||
};
|
||||
}
|
@ -1,38 +1,36 @@
|
||||
{ lib, fetchFromGitHub, python3Packages }:
|
||||
{ lib, fetchPypi, python3Packages }:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "rpl";
|
||||
version = "1.10";
|
||||
version = "1.15.5";
|
||||
|
||||
# Tests not included in pip package.
|
||||
doCheck = false;
|
||||
pyproject = true;
|
||||
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rrthomas";
|
||||
repo = "rpl";
|
||||
rev = "4467bd46a7a798f738247a7f090c1505176bd597";
|
||||
sha256 = "0yf3pc3fws4nnh4nd8d3jpglmsyi69d17qqgpcnkpqca5l4cd25w";
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-rhPS+hwbjqq3X/V1bL6pzGg2tVxBkeMyUhaCvmneG4M=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./remove-argparse-manpage.diff # quickfix for ImportError: No module named build_manpages.build_manpages
|
||||
nativeBuildInputs = [
|
||||
python3Packages.setuptools
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
python3Packages.pytest-datafiles
|
||||
python3Packages.pytestCheckHook
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
#python3Packages.argparse-manpage # TODO
|
||||
python3Packages.argparse-manpage
|
||||
python3Packages.chainstream
|
||||
python3Packages.chardet
|
||||
python3Packages.regex
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
mv rpl $out/bin
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Replace strings in files";
|
||||
homepage = "https://github.com/rrthomas/rpl";
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ teto ];
|
||||
maintainers = with maintainers; [ cbley ];
|
||||
};
|
||||
}
|
||||
|
@ -1,27 +0,0 @@
|
||||
diff --git a/setup.cfg b/setup.cfg
|
||||
index 12e9198..38e5376 100644
|
||||
--- a/setup.cfg
|
||||
+++ b/setup.cfg
|
||||
@@ -15,7 +15,6 @@ classifiers =
|
||||
[options]
|
||||
scripts = rpl
|
||||
python_requires = >=3
|
||||
-setup_requires = argparse-manpage
|
||||
install_requires = chardet
|
||||
|
||||
[options.extras_require]
|
||||
diff --git a/setup.py b/setup.py
|
||||
index 96cade6..879fc44 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -1,9 +1,8 @@
|
||||
-from build_manpages.build_manpages import get_install_cmd
|
||||
from setuptools import setup
|
||||
from setuptools.command.install import install
|
||||
|
||||
setup(
|
||||
cmdclass={
|
||||
- 'install': get_install_cmd(install),
|
||||
+ 'install': install,
|
||||
}
|
||||
)
|
@ -2007,6 +2007,8 @@ self: super: with self; {
|
||||
|
||||
chainmap = callPackage ../development/python-modules/chainmap { };
|
||||
|
||||
chainstream = callPackage ../development/python-modules/chainstream { };
|
||||
|
||||
chalice = callPackage ../development/python-modules/chalice { };
|
||||
|
||||
chameleon = callPackage ../development/python-modules/chameleon { };
|
||||
|
Loading…
Reference in New Issue
Block a user