mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
0215034f25
when they already rely on SRI hashes.
31 lines
673 B
Nix
31 lines
673 B
Nix
{ lib, buildPythonPackage, fetchFromGitHub, python }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "uri-template";
|
|
version = "1.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "plinss";
|
|
repo = "uri_template";
|
|
rev = "v${version}";
|
|
hash = "sha256-IAq6GpEwimq45FU0QugLZLSOhwAmC1KbpZKD0zyxsUs=";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i -e 's/0.0.0/${version}/' setup.py
|
|
'';
|
|
|
|
checkPhase = ''
|
|
${python.interpreter} test.py
|
|
'';
|
|
|
|
pythonImportsCheck = [ "uri_template" ];
|
|
|
|
meta = with lib; {
|
|
description = "An implementation of RFC 6570 URI Templates";
|
|
homepage = "https://github.com/plinss/uri_template/";
|
|
license = licenses.mit;
|
|
maintainers = [];
|
|
};
|
|
}
|