evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / po / poetry2conda / package.nix
blob9b0975bd01cf6724342e975f188118a82efcf29c
1 { lib
2 , fetchFromGitHub
3 , fetchpatch
4 , python3
5 }:
7 with python3.pkgs; buildPythonApplication rec {
8   pname = "poetry2conda";
9   version = "0.3.0";
11   format = "pyproject";
13   src = fetchFromGitHub {
14     owner = "dojeda";
15     repo = pname;
16     rev = "v${version}";
17     sha256 = "sha256-UqNoEGgStvqtxhYwExk7wO4SvATaM2kGaFbB5ViJa7U=";
18   };
20   patches = [
21     (fetchpatch {
22       name = "use-poetry-core.patch";
23       url = "https://github.com/dojeda/poetry2conda/commit/b127090498c89fbd8bbcbac45d03178a1e1c4219.patch";
24       hash = "sha256-J26NhVPG1vD/QNXi5irtGW05CYsIYvZNQIi8YvHwCLc=";
25     })
26   ];
28   nativeBuildInputs = [ poetry-core ];
30   propagatedBuildInputs = [
31     poetry-semver
32     toml
33   ];
35   nativeCheckInputs = [
36     pytest-mock
37     pytestCheckHook
38     pyyaml
39   ];
41   meta = with lib; {
42     description = "Script to convert a Python project declared on a pyproject.toml to a conda environment";
43     homepage = "https://github.com/dojeda/poetry2conda";
44     license = licenses.mit;
45     maintainers = with maintainers; [ cpcloud ];
46     mainProgram = "poetry2conda";
47   };