1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
36 lines
863 B
Nix
36 lines
863 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pytestCheckHook,
|
|
click,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "lexid";
|
|
version = "2021.1006";
|
|
format = "setuptools";
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "509a3a4cc926d3dbf22b203b18a4c66c25e6473fb7c0e0d30374533ac28bafe5";
|
|
};
|
|
|
|
prePatch = ''
|
|
# Disable lib3to6, since we're only building this on 3.6+ anyway.
|
|
substituteInPlace setup.py \
|
|
--replace 'if any(arg.startswith("bdist") for arg in sys.argv):' 'if False:'
|
|
'';
|
|
|
|
propagatedBuildInputs = [ click ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
meta = {
|
|
description = "Micro library to increment lexically ordered numerical ids";
|
|
mainProgram = "lexid_incr";
|
|
homepage = "https://pypi.org/project/lexid/";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ kfollesdal ];
|
|
};
|
|
}
|