nixpkgs/pkgs/development/python-modules/std-uritemplate/default.nix

40 lines
848 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, poetry-core
, pythonOlder
}:
buildPythonPackage rec {
pname = "std-uritemplate";
version = "0.0.55";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
pname = "std_uritemplate";
inherit version;
hash = "sha256-kHP1anfkTQWD+2ZFw35KZAo08iolXQDjeTzT8w2limg=";
};
nativeBuildInputs = [
poetry-core
];
# Module doesn't have unittest, only functional tests
doCheck = false;
pythonImportsCheck = [
"stduritemplate"
];
meta = with lib; {
description = "Std-uritemplate implementation for Python";
homepage = "https://github.com/std-uritemplate/std-uritemplate";
changelog = "https://github.com/std-uritemplate/std-uritemplate/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}